Abstract Class representing conditional Pdfs P(x | ...) More...
#include <conditionalpdf.h>
Public Member Functions | |
virtual ConditionalPdf< Var, CondArg > * | Clone () const |
Clone function. More... | |
const CondArg & | ConditionalArgumentGet (unsigned int n_argument) const |
Get the n-th argument of the list. More... | |
virtual void | ConditionalArgumentSet (unsigned int n_argument, const CondArg &argument) |
Set the n-th argument of the list. More... | |
const std::vector< CondArg > & | ConditionalArgumentsGet () const |
Get the whole list of conditional arguments. More... | |
virtual void | ConditionalArgumentsSet (std::vector< CondArg > ConditionalArguments) |
Set the whole list of conditional arguments. More... | |
ConditionalPdf (int dimension=0, unsigned int num_conditional_arguments=0) | |
Constructor. More... | |
unsigned int | NumConditionalArgumentsGet () const |
Get the Number of conditional arguments. More... | |
virtual void | NumConditionalArgumentsSet (unsigned int numconditionalarguments) |
Set the Number of conditional arguments. More... | |
virtual | ~ConditionalPdf () |
Destructor. More... | |
Public Member Functions inherited from BFL::BFL::Pdf< Var > | |
virtual MatrixWrapper::SymmetricMatrix | CovarianceGet () const |
Get the Covariance Matrix E[(x - E[x])^2] of the Analytic pdf. More... | |
unsigned int | DimensionGet () const |
Get the dimension of the argument. More... | |
virtual void | DimensionSet (unsigned int dim) |
Set the dimension of the argument. More... | |
virtual Var | ExpectedValueGet () const |
Get the expected value E[x] of the pdf. More... | |
Pdf (unsigned int dimension=0) | |
Constructor. More... | |
virtual Probability | ProbabilityGet (const Var &input) const |
Get the probability of a certain argument. More... | |
virtual bool | SampleFrom (vector< Sample< Var > > &list_samples, const unsigned int num_samples, int method=DEFAULT, void *args=NULL) const |
Draw multiple samples from the Pdf (overloaded) More... | |
virtual bool | SampleFrom (Sample< Var > &one_sample, int method=DEFAULT, void *args=NULL) const |
Draw 1 sample from the Pdf: More... | |
virtual | ~Pdf () |
Destructor. More... | |
Private Attributes | |
std::vector< CondArg > | _ConditionalArguments |
vector containing the values of the conditional args More... | |
unsigned int | _NumConditionalArguments |
of conditional arguments (# of args after the | sign)More... | |
Abstract Class representing conditional Pdfs P(x | ...)
This class inherits from Pdf Virtual public because of the multiple inheritance that follows Two templates are here to allow a mixture of discrete and continu variables in the Pdf!
Definition at line 49 of file conditionalpdf.h.
BFL::ConditionalPdf< Var, CondArg >::ConditionalPdf | ( | int | dimension = 0 , |
unsigned int | num_conditional_arguments = 0 |
||
) |
Constructor.
dimension | int representing the number of rows of the state vector |
num_conditional_arguments | the number of arguments behind the | |
Definition at line 116 of file conditionalpdf.h.
|
virtual |
Destructor.
Definition at line 124 of file conditionalpdf.h.
|
virtual |
Clone function.
Implements BFL::BFL::Pdf< Var >.
Reimplemented in BFL::DiscreteConditionalPdf, BFL::LinearAnalyticConditionalGaussian, and BFL::ConditionalGaussian.
Definition at line 129 of file conditionalpdf.h.
const CondArg & BFL::ConditionalPdf< Var, CondArg >::ConditionalArgumentGet | ( | unsigned int | n_argument | ) | const |
Get the n-th argument of the list.
Definition at line 165 of file conditionalpdf.h.
|
virtual |
Set the n-th argument of the list.
n_argument | which one of the conditional arguments |
argument | value of the n-th argument |
Definition at line 173 of file conditionalpdf.h.
const std::vector< CondArg > & BFL::ConditionalPdf< Var, CondArg >::ConditionalArgumentsGet | ( | ) | const |
Get the whole list of conditional arguments.
Definition at line 152 of file conditionalpdf.h.
|
virtual |
Set the whole list of conditional arguments.
ConditionalArguments | an STL-vector of type Tcontaining the condtional arguments |
Definition at line 158 of file conditionalpdf.h.
|
inline |
Get the Number of conditional arguments.
Definition at line 135 of file conditionalpdf.h.
|
inlinevirtual |
Set the Number of conditional arguments.
numconditionalarguments | the number of conditionalarguments |
Reimplemented in BFL::LinearAnalyticConditionalGaussian.
Definition at line 141 of file conditionalpdf.h.
|
private |
vector containing the values of the conditional args
Definition at line 110 of file conditionalpdf.h.
|
private |
Definition at line 108 of file conditionalpdf.h.