#include <asirfilter.h>
Public Member Functions | |
WeightedSample< T > & | operator= (const WeightedSample< T > &my_sample) |
Operator =. More... | |
WeightedSample< T > & | operator= (const Sample< T > &my_sample) |
Turn sample into weighted one (weight = 1) More... | |
WeightedSample (int dimension=0) | |
Constructor. More... | |
WeightedSample (const WeightedSample< T > &my_weighted_sample) | |
Copy constructor. More... | |
double | WeightGet () const |
Get the weight. More... | |
void | WeightSet (double weight) |
Set the weight. More... | |
virtual | ~WeightedSample () |
Destructor. More... | |
Public Member Functions inherited from BFL::BFL::Sample< T > | |
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 =. More... | |
template<> | |
Sample (unsigned int dimension) | |
Sample (unsigned int dimension=0) | |
Constructor. More... | |
Sample (const Sample< T > &my_sample) | |
Copy Constructor. More... | |
T & | ValueGet () |
Get the value of the Sample. More... | |
const T & | ValueGet () const |
Get the value of the Sample. More... | |
void | ValueSet (const T &value) |
Set the value of the Sample. More... | |
virtual | ~Sample () |
Destructor. More... | |
Protected Attributes | |
double | Weight |
The weight. More... | |
Protected Attributes inherited from BFL::BFL::Sample< T > | |
T | Value |
The Sample Value. More... | |
Friends | |
template<typename S > | |
ostream & | operator<< (ostream &stream, WeightedSample< S > &mws) |
Print a weighted sample. More... | |
Template Class representing a sample of a continuous or discrete pdf, together with a weight denoting the relative importance of that sample. Inheritance is virtual (only important for a particular class hybridweightedsample (see the rob/actsens/cubeincorner CVS tree)
Definition at line 48 of file asirfilter.h.
BFL::WeightedSample< T >::WeightedSample | ( | int | dimension = 0 | ) |
Constructor.
dimension | of the ColumnVector for the continuous samples, number of discrete states for the discrete case |
Definition at line 93 of file asirfilter.h.
|
virtual |
Destructor.
Definition at line 96 of file asirfilter.h.
BFL::WeightedSample< T >::WeightedSample | ( | const WeightedSample< T > & | my_weighted_sample | ) |
Copy constructor.
Definition at line 98 of file asirfilter.h.
WeightedSample< T > & BFL::WeightedSample< T >::operator= | ( | const WeightedSample< T > & | my_sample | ) |
Operator =.
Definition at line 124 of file asirfilter.h.
WeightedSample< T > & BFL::WeightedSample< T >::operator= | ( | const Sample< T > & | my_sample | ) |
Turn sample into weighted one (weight = 1)
Definition at line 136 of file asirfilter.h.
double BFL::WeightedSample< T >::WeightGet | ( | ) | const |
void BFL::WeightedSample< T >::WeightSet | ( | double | weight | ) |
Set the weight.
weight | the weight :-) |
Definition at line 109 of file asirfilter.h.
|
friend |
Print a weighted sample.
stream | the stream to be returned |
mws | the weighted sample to be printed |
Definition at line 116 of file asirfilter.h.
|
protected |
The weight.
Definition at line 52 of file asirfilter.h.