#include <sample.h>
Public Member Functions | |
template<> | |
unsigned int | DimensionGet () const |
template<> | |
unsigned int | DimensionGet () const |
template<> | |
unsigned int | DimensionGet () const |
unsigned int | DimensionGet () const |
template<> | |
void | DimensionSet (unsigned int dim) |
template<> | |
void | DimensionSet (unsigned int dim) |
template<> | |
void | DimensionSet (unsigned int dim) |
void | DimensionSet (unsigned int dim) |
Sample & | operator= (const Sample &my_sample) |
Operator =. | |
template<> | |
Sample (unsigned int dimension) | |
Sample (unsigned int dimension=0) | |
Constructor. | |
Sample (const Sample< T > &my_sample) | |
Copy Constructor. | |
T & | ValueGet () |
Get the value of the Sample. | |
const T & | ValueGet () const |
Get the value of the Sample. | |
void | ValueSet (const T &value) |
Set the value of the Sample. | |
virtual | ~Sample () |
Destructor. | |
Protected Attributes | |
T | Value |
The Sample Value. | |
Friends | |
template<typename S > | |
ostream & | operator<< (ostream &stream, Sample< S > &my_sample) |
Print a sample. | |
template<typename S > | |
istream & | operator>> (istream &stream, Sample< S > &my_sample) |
Template Class representing a basic sample of a continuous or discrete pdf
BFL::Sample< T >::Sample | ( | unsigned int | dimension = 0 | ) |
Constructor.
dimension | of the ColumnVector for the continuous samples. This parameter is ignored in the discrete case. |
virtual BFL::Sample< T >::~Sample | ( | ) | [virtual] |
Destructor.
BFL::Sample< T >::Sample | ( | const Sample< T > & | my_sample | ) |
Copy Constructor.
BFL::Sample< ColumnVector >::Sample | ( | unsigned int | dimension | ) | [inline] |
Definition at line 30 of file sample.cpp.
unsigned int BFL::Sample< ColumnVector >::DimensionGet | ( | ) | const [inline] |
Definition at line 36 of file sample.cpp.
unsigned int BFL::Sample< double >::DimensionGet | ( | ) | const [inline] |
Definition at line 49 of file sample.cpp.
unsigned int BFL::Sample< int >::DimensionGet | ( | ) | const [inline] |
Definition at line 62 of file sample.cpp.
unsigned int BFL::Sample< T >::DimensionGet | ( | ) | const |
void BFL::Sample< ColumnVector >::DimensionSet | ( | unsigned int | dim | ) | [inline] |
Definition at line 42 of file sample.cpp.
void BFL::Sample< double >::DimensionSet | ( | unsigned int | dim | ) | [inline] |
Definition at line 55 of file sample.cpp.
void BFL::Sample< int >::DimensionSet | ( | unsigned int | dim | ) | [inline] |
Definition at line 68 of file sample.cpp.
void BFL::Sample< T >::DimensionSet | ( | unsigned int | dim | ) |
Sample& BFL::Sample< T >::operator= | ( | const Sample< T > & | my_sample | ) |
Operator =.
T& BFL::Sample< T >::ValueGet | ( | ) |
Get the value of the Sample.
const T& BFL::Sample< T >::ValueGet | ( | ) | const |
Get the value of the Sample.
void BFL::Sample< T >::ValueSet | ( | const T & | value | ) |
Set the value of the Sample.
value | the value indeed :-) |
ostream& operator<< | ( | ostream & | stream, |
Sample< S > & | my_sample | ||
) | [friend] |
istream& operator>> | ( | istream & | stream, |
Sample< S > & | my_sample | ||
) | [friend] |
T BFL::Sample< T >::Value [protected] |