25 template<
typename MeasVar,
typename StateVar>
28 #ifdef __CONSTRUCTOR__ 29 cout <<
"MeasurementModel::Constructor" << endl;
30 #endif // __CONSTRUCTOR__ 31 if (measurementpdf != NULL)
37 _systemWithoutSensorParams =
true;
38 _MeasurementPdf = measurementpdf;
43 _systemWithoutSensorParams =
false;
44 _MeasurementPdf = measurementpdf;
48 cerr <<
"MeasurementModel::Constructor : MeasPdf can only have 1 or 2 conditional Arguments (x and u, in that order!))" << endl;
56 template<
typename MeasVar,
typename StateVar>
60 cout <<
"MeasurementModel::Destructor" << endl;
61 #endif // __DESTRUCTOR__ 74 template<
typename MeasVar,
typename StateVar>
int 77 return _MeasurementPdf->DimensionGet();
80 template<
typename MeasVar,
typename StateVar>
bool 83 return _systemWithoutSensorParams;
90 return _MeasurementPdf;
94 template<
typename MeasVar,
typename StateVar>
void 102 _systemWithoutSensorParams =
true;
103 _MeasurementPdf = pdf;
108 _systemWithoutSensorParams =
false;
109 _MeasurementPdf = pdf;
114 cerr <<
"MeasurementModel::Constructor : MeasPdf can only have 1 or 2 conditional Arguments (x and u, in that order!))" << endl;
120 template<
typename MeasVar,
typename StateVar>
MeasVar 124 void * sampling_args)
126 assert(_systemWithoutSensorParams ==
false);
127 _MeasurementPdf->ConditionalArgumentSet(0,x);
128 _MeasurementPdf->ConditionalArgumentSet(1,s);
130 _MeasurementPdf->SampleFrom(Simulated, sampling_method,sampling_args);
136 template<
typename MeasVar,
typename StateVar>
MeasVar 139 void * sampling_args)
141 assert(_systemWithoutSensorParams ==
true);
142 _MeasurementPdf->ConditionalArgumentSet(0,x);
144 _MeasurementPdf->SampleFrom(Simulated, sampling_method,sampling_args);
149 template <
typename MeasVar,
typename StateVar>
Probability 154 assert(_systemWithoutSensorParams ==
false);
155 _MeasurementPdf->ConditionalArgumentSet(0,x);
156 _MeasurementPdf->ConditionalArgumentSet(1,s);
157 return _MeasurementPdf->ProbabilityGet(z);
160 template <
typename MeasVar,
typename StateVar>
Probability 164 assert(_systemWithoutSensorParams ==
true);
165 _MeasurementPdf->ConditionalArgumentSet(0,x);
166 return _MeasurementPdf->ProbabilityGet(z);
unsigned int NumConditionalArgumentsGet() const
Get the Number of conditional arguments.
T & ValueGet()
Get the value of the Sample.
Class representing a probability (a double between 0 and 1)