Bayesian Filtering Library Generated from SVN r
WeightedSample< T > Class Template Reference

#include <asirfilter.h>

Inheritance diagram for WeightedSample< T >:
Sample< T > Sample< T > Sample< T > Sample< T > Sample< T >

Public Member Functions

 WeightedSample (int dimension=0)
 Constructor.
 
virtual ~WeightedSample ()
 Destructor.
 
 WeightedSample (const WeightedSample< T > &my_weighted_sample)
 Copy constructor.
 
double WeightGet () const
 Get the weight.
 
void WeightSet (double weight)
 Set the weight.
 
WeightedSample< T > & operator= (const WeightedSample< T > &my_sample)
 Operator =.
 
WeightedSample< T > & operator= (const Sample< T > &my_sample)
 Turn sample into weighted one (weight = 1)
 
 WeightedSample (int dimension=0)
 Constructor.
 
virtual ~WeightedSample ()
 Destructor.
 
 WeightedSample (const WeightedSample< T > &my_weighted_sample)
 Copy constructor.
 
double WeightGet () const
 Get the weight.
 
void WeightSet (double weight)
 Set the weight.
 
WeightedSample< T > & operator= (const WeightedSample< T > &my_sample)
 Operator =.
 
WeightedSample< T > & operator= (const Sample< T > &my_sample)
 Turn sample into weighted one (weight = 1)
 
 WeightedSample (int dimension=0)
 Constructor.
 
virtual ~WeightedSample ()
 Destructor.
 
 WeightedSample (const WeightedSample< T > &my_weighted_sample)
 Copy constructor.
 
double WeightGet () const
 Get the weight.
 
void WeightSet (double weight)
 Set the weight.
 
WeightedSample< T > & operator= (const WeightedSample< T > &my_sample)
 Operator =.
 
WeightedSample< T > & operator= (const Sample< T > &my_sample)
 Turn sample into weighted one (weight = 1)
 
 WeightedSample (int dimension=0)
 Constructor.
 
virtual ~WeightedSample ()
 Destructor.
 
 WeightedSample (const WeightedSample< T > &my_weighted_sample)
 Copy constructor.
 
double WeightGet () const
 Get the weight.
 
void WeightSet (double weight)
 Set the weight.
 
WeightedSample< T > & operator= (const WeightedSample< T > &my_sample)
 Operator =.
 
WeightedSample< T > & operator= (const Sample< T > &my_sample)
 Turn sample into weighted one (weight = 1)
 
 WeightedSample (int dimension=0)
 Constructor.
 
virtual ~WeightedSample ()
 Destructor.
 
 WeightedSample (const WeightedSample< T > &my_weighted_sample)
 Copy constructor.
 
double WeightGet () const
 Get the weight.
 
void WeightSet (double weight)
 Set the weight.
 
WeightedSample< T > & operator= (const WeightedSample< T > &my_sample)
 Operator =.
 
WeightedSample< T > & operator= (const Sample< T > &my_sample)
 Turn sample into weighted one (weight = 1)
 
T & ValueGet ()
 Get the value of the Sample.
 
const T & ValueGet () const
 Get the value of the Sample.
 
T & ValueGet ()
 Get the value of the Sample.
 
const T & ValueGet () const
 Get the value of the Sample.
 
T & ValueGet ()
 Get the value of the Sample.
 
const T & ValueGet () const
 Get the value of the Sample.
 
T & ValueGet ()
 Get the value of the Sample.
 
const T & ValueGet () const
 Get the value of the Sample.
 
T & ValueGet ()
 Get the value of the Sample.
 
const T & ValueGet () const
 Get the value of the Sample.
 
T & ValueGet ()
 Get the value of the Sample.
 
const T & ValueGet () const
 Get the value of the Sample.
 
unsigned int DimensionGet () const
 
unsigned int DimensionGet () const
 
unsigned int DimensionGet () const
 
unsigned int DimensionGet () const
 
unsigned int DimensionGet () const
 
unsigned int DimensionGet () const
 
unsigned int DimensionGet () const
 
unsigned int DimensionGet () const
 
unsigned int DimensionGet () const
 
unsigned int DimensionGet () const
 
unsigned int DimensionGet () const
 
unsigned int DimensionGet () const
 
unsigned int DimensionGet () const
 
unsigned int DimensionGet () const
 
unsigned int DimensionGet () const
 
unsigned int DimensionGet () const
 
unsigned int DimensionGet () const
 
unsigned int DimensionGet () const
 
unsigned int DimensionGet () const
 
unsigned int DimensionGet () const
 
unsigned int DimensionGet () const
 
unsigned int DimensionGet () const
 
unsigned int DimensionGet () const
 
unsigned int DimensionGet () const
 
void DimensionSet (unsigned int dim)
 
void DimensionSet (unsigned int dim)
 
void DimensionSet (unsigned int dim)
 
void DimensionSet (unsigned int dim)
 
void DimensionSet (unsigned int dim)
 
void DimensionSet (unsigned int dim)
 
void DimensionSet (unsigned int dim)
 
void DimensionSet (unsigned int dim)
 
void DimensionSet (unsigned int dim)
 
void DimensionSet (unsigned int dim)
 
void DimensionSet (unsigned int dim)
 
void DimensionSet (unsigned int dim)
 
void DimensionSet (unsigned int dim)
 
void DimensionSet (unsigned int dim)
 
void DimensionSet (unsigned int dim)
 
void DimensionSet (unsigned int dim)
 
void DimensionSet (unsigned int dim)
 
void DimensionSet (unsigned int dim)
 
void DimensionSet (unsigned int dim)
 
void DimensionSet (unsigned int dim)
 
void DimensionSet (unsigned int dim)
 
void DimensionSet (unsigned int dim)
 
void DimensionSet (unsigned int dim)
 
void DimensionSet (unsigned int dim)
 
void ValueSet (const T &value)
 Set the value of the Sample.
 
void ValueSet (const T &value)
 Set the value of the Sample.
 
void ValueSet (const T &value)
 Set the value of the Sample.
 
void ValueSet (const T &value)
 Set the value of the Sample.
 
void ValueSet (const T &value)
 Set the value of the Sample.
 
void ValueSet (const T &value)
 Set the value of the Sample.
 

Protected Attributes

double Weight
 The weight.
 
Value
 The Sample Value.
 

Friends

template<typename S >
ostream & operator<< (ostream &stream, WeightedSample< S > &mws)
 Print a weighted sample.
 
template<typename S >
ostream & operator<< (ostream &stream, WeightedSample< S > &mws)
 Print a weighted sample.
 
template<typename S >
ostream & operator<< (ostream &stream, WeightedSample< S > &mws)
 Print a weighted sample.
 
template<typename S >
ostream & operator<< (ostream &stream, WeightedSample< S > &mws)
 Print a weighted sample.
 
template<typename S >
ostream & operator<< (ostream &stream, WeightedSample< S > &mws)
 Print a weighted sample.
 
template<typename S >
ostream & operator<< (ostream &stream, WeightedSample< S > &mws)
 Print a weighted sample.
 

Detailed Description

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

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 particlesmoother.h.

Constructor & Destructor Documentation

◆ WeightedSample() [1/6]

template<typename T >
WeightedSample ( int dimension = 0)

Constructor.

Parameters
dimensionof the ColumnVector for the continuous samples, number of discrete states for the discrete case

Definition at line 93 of file asirfilter.h.

◆ ~WeightedSample()

template<typename T >
~WeightedSample ( )
virtual

Destructor.

Definition at line 96 of file asirfilter.h.

◆ WeightedSample() [2/6]

template<typename T >
WeightedSample ( const WeightedSample< T > & my_weighted_sample)

Copy constructor.

Definition at line 98 of file asirfilter.h.

◆ WeightedSample() [3/6]

template<typename T >
WeightedSample ( int dimension = 0)

Constructor.

Parameters
dimensionof the ColumnVector for the continuous samples, number of discrete states for the discrete case

◆ WeightedSample() [4/6]

template<typename T >
WeightedSample ( int dimension = 0)

Constructor.

Parameters
dimensionof the ColumnVector for the continuous samples, number of discrete states for the discrete case

◆ WeightedSample() [5/6]

template<typename T >
WeightedSample ( int dimension = 0)

Constructor.

Parameters
dimensionof the ColumnVector for the continuous samples, number of discrete states for the discrete case

◆ WeightedSample() [6/6]

template<typename T >
WeightedSample ( int dimension = 0)

Constructor.

Parameters
dimensionof the ColumnVector for the continuous samples, number of discrete states for the discrete case

Member Function Documentation

◆ DimensionGet() [1/19]

unsigned int DimensionGet ( ) const
inlineinherited

Definition at line 37 of file asirfilter.h.

◆ DimensionGet() [2/19]

unsigned int DimensionGet ( ) const
inlineinherited

Definition at line 37 of file bootstrapfilter.h.

◆ DimensionGet() [3/19]

unsigned int DimensionGet ( ) const
inlineinherited

Definition at line 37 of file mixtureBootstrapFilter.h.

◆ DimensionGet() [4/19]

unsigned int DimensionGet ( ) const
inlineinherited

Definition at line 37 of file mixtureParticleFilter.h.

◆ DimensionGet() [5/19]

unsigned int DimensionGet ( ) const
inlineinherited

Definition at line 37 of file particlefilter.h.

◆ DimensionGet() [6/19]

unsigned int DimensionGet ( ) const
inlineinherited

Definition at line 37 of file particlesmoother.h.

◆ DimensionGet() [7/19]

unsigned int DimensionGet ( ) const
inlineinherited

Definition at line 50 of file asirfilter.h.

◆ DimensionGet() [8/19]

unsigned int DimensionGet ( ) const
inlineinherited

Definition at line 50 of file bootstrapfilter.h.

◆ DimensionGet() [9/19]

unsigned int DimensionGet ( ) const
inlineinherited

Definition at line 50 of file mixtureBootstrapFilter.h.

◆ DimensionGet() [10/19]

unsigned int DimensionGet ( ) const
inlineinherited

Definition at line 50 of file mixtureParticleFilter.h.

◆ DimensionGet() [11/19]

unsigned int DimensionGet ( ) const
inlineinherited

Definition at line 50 of file particlefilter.h.

◆ DimensionGet() [12/19]

unsigned int DimensionGet ( ) const
inlineinherited

Definition at line 50 of file particlesmoother.h.

◆ DimensionGet() [13/19]

unsigned int DimensionGet ( ) const
inlineinherited

Definition at line 63 of file asirfilter.h.

◆ DimensionGet() [14/19]

unsigned int DimensionGet ( ) const
inlineinherited

Definition at line 63 of file bootstrapfilter.h.

◆ DimensionGet() [15/19]

unsigned int DimensionGet ( ) const
inlineinherited

Definition at line 63 of file mixtureBootstrapFilter.h.

◆ DimensionGet() [16/19]

unsigned int DimensionGet ( ) const
inlineinherited

Definition at line 63 of file mixtureParticleFilter.h.

◆ DimensionGet() [17/19]

unsigned int DimensionGet ( ) const
inlineinherited

Definition at line 63 of file particlefilter.h.

◆ DimensionGet() [18/19]

unsigned int DimensionGet ( ) const
inlineinherited

Definition at line 63 of file particlesmoother.h.

◆ DimensionGet() [19/19]

template<typename T >
unsigned int DimensionGet ( ) const
inherited

Definition at line 145 of file asirfilter.h.

◆ DimensionSet() [1/19]

void DimensionSet ( unsigned int dim)
inlineinherited

Definition at line 43 of file asirfilter.h.

◆ DimensionSet() [2/19]

void DimensionSet ( unsigned int dim)
inlineinherited

Definition at line 43 of file bootstrapfilter.h.

◆ DimensionSet() [3/19]

void DimensionSet ( unsigned int dim)
inlineinherited

Definition at line 43 of file mixtureBootstrapFilter.h.

◆ DimensionSet() [4/19]

void DimensionSet ( unsigned int dim)
inlineinherited

Definition at line 43 of file mixtureParticleFilter.h.

◆ DimensionSet() [5/19]

void DimensionSet ( unsigned int dim)
inlineinherited

Definition at line 43 of file particlefilter.h.

◆ DimensionSet() [6/19]

void DimensionSet ( unsigned int dim)
inlineinherited

Definition at line 43 of file particlesmoother.h.

◆ DimensionSet() [7/19]

void DimensionSet ( unsigned int dim)
inlineinherited

Definition at line 56 of file asirfilter.h.

◆ DimensionSet() [8/19]

void DimensionSet ( unsigned int dim)
inlineinherited

Definition at line 56 of file bootstrapfilter.h.

◆ DimensionSet() [9/19]

void DimensionSet ( unsigned int dim)
inlineinherited

Definition at line 56 of file mixtureBootstrapFilter.h.

◆ DimensionSet() [10/19]

void DimensionSet ( unsigned int dim)
inlineinherited

Definition at line 56 of file mixtureParticleFilter.h.

◆ DimensionSet() [11/19]

void DimensionSet ( unsigned int dim)
inlineinherited

Definition at line 56 of file particlefilter.h.

◆ DimensionSet() [12/19]

void DimensionSet ( unsigned int dim)
inlineinherited

Definition at line 56 of file particlesmoother.h.

◆ DimensionSet() [13/19]

void DimensionSet ( unsigned int dim)
inlineinherited

Definition at line 69 of file asirfilter.h.

◆ DimensionSet() [14/19]

void DimensionSet ( unsigned int dim)
inlineinherited

Definition at line 69 of file bootstrapfilter.h.

◆ DimensionSet() [15/19]

void DimensionSet ( unsigned int dim)
inlineinherited

Definition at line 69 of file mixtureBootstrapFilter.h.

◆ DimensionSet() [16/19]

void DimensionSet ( unsigned int dim)
inlineinherited

Definition at line 69 of file mixtureParticleFilter.h.

◆ DimensionSet() [17/19]

void DimensionSet ( unsigned int dim)
inlineinherited

Definition at line 69 of file particlefilter.h.

◆ DimensionSet() [18/19]

void DimensionSet ( unsigned int dim)
inlineinherited

Definition at line 69 of file particlesmoother.h.

◆ DimensionSet() [19/19]

template<typename T >
void DimensionSet ( unsigned int dim)
inherited

Definition at line 151 of file asirfilter.h.

◆ operator=() [1/2]

template<typename T >
WeightedSample< T > & operator= ( const Sample< T > & my_sample)

Turn sample into weighted one (weight = 1)

Definition at line 136 of file asirfilter.h.

◆ operator=() [2/2]

template<typename T >
WeightedSample< T > & operator= ( const WeightedSample< T > & my_sample)

Operator =.

Definition at line 124 of file asirfilter.h.

◆ ValueGet() [1/2]

template<typename T >
T & ValueGet ( )
inherited

Get the value of the Sample.

Definition at line 132 of file asirfilter.h.

◆ ValueGet() [2/2]

template<typename T >
const T & ValueGet ( ) const
inherited

Get the value of the Sample.

Definition at line 139 of file asirfilter.h.

◆ ValueSet() [1/6]

template<typename T >
void ValueSet ( const T & value)
inherited

Set the value of the Sample.

Parameters
valuethe value indeed :-)

Definition at line 125 of file asirfilter.h.

◆ ValueSet() [2/6]

template<typename T >
void ValueSet ( const T & value)
inherited

Set the value of the Sample.

Parameters
valuethe value indeed :-)

◆ ValueSet() [3/6]

template<typename T >
void ValueSet ( const T & value)
inherited

Set the value of the Sample.

Parameters
valuethe value indeed :-)

◆ ValueSet() [4/6]

template<typename T >
void ValueSet ( const T & value)
inherited

Set the value of the Sample.

Parameters
valuethe value indeed :-)

◆ ValueSet() [5/6]

template<typename T >
void ValueSet ( const T & value)
inherited

Set the value of the Sample.

Parameters
valuethe value indeed :-)

◆ ValueSet() [6/6]

template<typename T >
void ValueSet ( const T & value)
inherited

Set the value of the Sample.

Parameters
valuethe value indeed :-)

◆ WeightGet() [1/5]

template<typename T >
double WeightGet ( ) const

Get the weight.

Returns
the weight

Definition at line 104 of file asirfilter.h.

◆ WeightGet() [2/5]

template<typename T >
double WeightGet ( ) const

Get the weight.

Returns
the weight

◆ WeightGet() [3/5]

template<typename T >
double WeightGet ( ) const

Get the weight.

Returns
the weight

◆ WeightGet() [4/5]

template<typename T >
double WeightGet ( ) const

Get the weight.

Returns
the weight

◆ WeightGet() [5/5]

template<typename T >
double WeightGet ( ) const

Get the weight.

Returns
the weight

◆ WeightSet() [1/5]

template<typename T >
void WeightSet ( double weight)

Set the weight.

Parameters
weightthe weight :-)
Returns
true if weight is a reasonable value

Definition at line 109 of file asirfilter.h.

◆ WeightSet() [2/5]

template<typename T >
void WeightSet ( double weight)

Set the weight.

Parameters
weightthe weight :-)
Returns
true if weight is a reasonable value

◆ WeightSet() [3/5]

template<typename T >
void WeightSet ( double weight)

Set the weight.

Parameters
weightthe weight :-)
Returns
true if weight is a reasonable value

◆ WeightSet() [4/5]

template<typename T >
void WeightSet ( double weight)

Set the weight.

Parameters
weightthe weight :-)
Returns
true if weight is a reasonable value

◆ WeightSet() [5/5]

template<typename T >
void WeightSet ( double weight)

Set the weight.

Parameters
weightthe weight :-)
Returns
true if weight is a reasonable value

Friends And Related Symbol Documentation

◆ operator<< [1/6]

template<typename T >
template<typename S >
ostream & operator<< ( ostream & stream,
WeightedSample< S > & mws )
friend

Print a weighted sample.

Parameters
streamthe stream to be returned
mwsthe weighted sample to be printed
Returns
the stream :-)

Definition at line 116 of file asirfilter.h.

◆ operator<< [2/6]

template<typename T >
template<typename S >
ostream & operator<< ( ostream & stream,
WeightedSample< S > & mws )
friend

Print a weighted sample.

Parameters
streamthe stream to be returned
mwsthe weighted sample to be printed
Returns
the stream :-)

Definition at line 116 of file asirfilter.h.

◆ operator<< [3/6]

template<typename T >
template<typename S >
ostream & operator<< ( ostream & stream,
WeightedSample< S > & mws )
friend

Print a weighted sample.

Parameters
streamthe stream to be returned
mwsthe weighted sample to be printed
Returns
the stream :-)

Definition at line 116 of file asirfilter.h.

◆ operator<< [4/6]

template<typename T >
template<typename S >
ostream & operator<< ( ostream & stream,
WeightedSample< S > & mws )
friend

Print a weighted sample.

Parameters
streamthe stream to be returned
mwsthe weighted sample to be printed
Returns
the stream :-)

Definition at line 116 of file asirfilter.h.

◆ operator<< [5/6]

template<typename T >
template<typename S >
ostream & operator<< ( ostream & stream,
WeightedSample< S > & mws )
friend

Print a weighted sample.

Parameters
streamthe stream to be returned
mwsthe weighted sample to be printed
Returns
the stream :-)

Definition at line 116 of file asirfilter.h.

◆ operator<< [6/6]

template<typename T >
template<typename S >
ostream & operator<< ( ostream & stream,
WeightedSample< S > & mws )
friend

Print a weighted sample.

Parameters
streamthe stream to be returned
mwsthe weighted sample to be printed
Returns
the stream :-)

Member Data Documentation

◆ Value

template<typename T >
T Value
protectedinherited

The Sample Value.

Definition at line 51 of file asirfilter.h.

◆ Weight

template<typename T >
double Weight
protected

The weight.

Definition at line 52 of file asirfilter.h.


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