Sample Class Template Reference

#include <sample.h>

Inheritance diagram for Sample:

WeightedSample

List of all members.

Public Member Functions

 Sample (unsigned int dimension=0)
 Constructor.
virtual ~Sample ()
 Destructor.
 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.
unsigned int DimensionGet () const
void DimensionSet (unsigned int dim)
void ValueSet (const T &value)
 Set the value of the Sample.
Sampleoperator= (const Sample &my_sample)
 Operator =.

Protected Attributes

Value
 The Sample Value.

Friends

template<typename S>
ostream & operator<< (ostream &stream, Sample< S > &my_sample)
 Print a sample.


Detailed Description

template<typename T>
class BFL::Sample< T >

Template Class representing a basic sample of a continuous or discrete pdf

Definition at line 47 of file sample.h.


Constructor & Destructor Documentation

Sample ( unsigned int  dimension = 0  )  [inline]

Constructor.

Parameters:
dimension of the ColumnVector for the continuous samples. This parameter is ignored in the discrete case.

Definition at line 105 of file sample.h.


Member Function Documentation

void ValueSet ( const T &  value  )  [inline]

Set the value of the Sample.

Parameters:
value the value indeed :-)

Definition at line 122 of file sample.h.

References Sample::Value.


Friends And Related Function Documentation

ostream& operator<< ( ostream &  stream,
Sample< S > &  my_sample 
) [friend]

Print a sample.

Parameters:
stream the stream to be returned
my_sample the sample to be printed
Returns:
the stream :-)

Definition at line 152 of file sample.h.


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

Generated on Mon Mar 30 05:43:59 2009 for Bayesian Filtering Library by  doxygen 1.5.5