Version: 8.3.0
Aleatoire Class Referenceabstract

#include <aleas.hxx>

Inheritance diagram for Aleatoire:
Collaboration diagram for Aleatoire:

Public Member Functions

 Aleatoire (long)
 
virtual std::vector< double > * gen (void)
 
virtual void fill (std::vector< double > &)
 
virtual double tire (void)=0
 

Protected Attributes

long size
 

Detailed Description

Definition at line 26 of file aleas.hxx.

Constructor & Destructor Documentation

Aleatoire::Aleatoire ( long  sz)

Definition at line 98 of file aleas.cxx.

References initrand(), and size.

99 {
100  size = sz;
101  initrand();
102 }

Member Function Documentation

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

Reimplemented in SpherePositif, and Sphere.

Definition at line 104 of file aleas.cxx.

References CORBAEngineTest::i, size, and tire().

Referenced by Sphere::fill(), and gen().

105 {
106  int i;
107 
108  for (i=0; i<size; i++) ret[i] = tire();
109 }
std::vector< double > * Aleatoire::gen ( void  )
virtual

Definition at line 111 of file aleas.cxx.

References fill(), PMMLBasicsTestLauncher::ret, and size.

Referenced by Point::next().

112 {
113  std::vector<double> *ret;
114 
115  ret = new std::vector<double>(size);
116  fill(*ret);
117  return ret;
118 }
virtual double Aleatoire::tire ( void  )
pure virtual

Implemented in NormalePositif, Normale, and Cube.

Referenced by fill().

Member Data Documentation

long Aleatoire::size
protected

Definition at line 29 of file aleas.hxx.

Referenced by Aleatoire(), fill(), Sphere::fill(), SpherePositif::fill(), and gen().


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