Version: 9.15.0
SpherePositif Class Reference

#include <aleas.hxx>

Inheritance diagram for SpherePositif:
Collaboration diagram for SpherePositif:

Public Member Functions

 SpherePositif (long s)
 
virtual void fill (std::vector< double > &)
 
- Public Member Functions inherited from Sphere
 Sphere (long s)
 
- Public Member Functions inherited from Normale
 Normale (long s)
 
virtual double tire (void)
 
- Public Member Functions inherited from Aleatoire
 Aleatoire (long)
 
virtual std::vector< double > * gen (void)
 

Additional Inherited Members

- Protected Attributes inherited from Aleatoire
long size
 

Detailed Description

Definition at line 61 of file aleas.hxx.

Constructor & Destructor Documentation

◆ SpherePositif()

SpherePositif::SpherePositif ( long  s)
inline

Definition at line 63 of file aleas.hxx.

63 : Sphere(s) {};
Sphere(long s)
Definition: aleas.hxx:57

Member Function Documentation

◆ fill()

void SpherePositif::fill ( std::vector< double > &  ret)
virtual

Reimplemented from Sphere.

Definition at line 154 of file aleas.cxx.

155 {
156  long i;
157 
158  Sphere::fill(ret);
159  for (i=0; i<size; i++)
160  ret[i] = fabs(ret[i]);
161 }
long size
Definition: aleas.hxx:29
virtual void fill(std::vector< double > &)
Definition: aleas.cxx:139

References Sphere::fill(), yacsorb.CORBAEngineTest::i, and Aleatoire::size.


The documentation for this class was generated from the following files: