Version: 8.3.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 ( long  s)
inline

Definition at line 63 of file aleas.hxx.

63 : Sphere(s) {};

Member Function Documentation

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

Reimplemented from Sphere.

Definition at line 154 of file aleas.cxx.

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

155 {
156  long i;
157 
158  Sphere::fill(ret);
159  for (i=0; i<size; i++)
160  ret[i] = fabs(ret[i]);
161 }

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