#include <systemmodel.h>
Public Member Functions | |
Probability | ProbabilityGet (const T &x_k, const T &x_kminusone, const T &u) |
Get the probability of arriving in a next state. | |
Probability | ProbabilityGet (const T &x_k, const T &x_kminusone) |
Get the probability of arriving in a next state. | |
T | Simulate (const T &x, const T &u, int sampling_method=DEFAULT, void *sampling_args=NULL) |
Simulate the system. | |
T | Simulate (const T &x, int sampling_method=DEFAULT, void *sampling_args=NULL) |
Simulate the system (no input system) | |
int | StateSizeGet () const |
Get State Size. | |
SystemModel (ConditionalPdf< T, T > *systempdf=NULL) | |
Constructor. | |
ConditionalPdf< T, T > * | SystemPdfGet () |
Get the SystemPDF. | |
void | SystemPdfSet (ConditionalPdf< T, T > *pdf) |
Set the SystemPDF. | |
bool | SystemWithoutInputs () const |
Has the system inputs or not. | |
virtual | ~SystemModel () |
Destructor. | |
Protected Attributes | |
ConditionalPdf< T, T > * | _SystemPdf |
ConditionalPdf representing . | |
bool | _systemWithoutInputs |
System with no inputs? |
Template class representing all possible (continu and discrete) System Models
Definition at line 48 of file systemmodel.h.
BFL::SystemModel< T >::SystemModel | ( | ConditionalPdf< T, T > * | systempdf = NULL | ) |
Constructor.
systempdf | ConditionalPdf<T,T> representing |
Definition at line 21 of file systemmodel.cpp.
BFL::SystemModel< T >::~SystemModel | ( | ) | [virtual] |
Destructor.
Definition at line 53 of file systemmodel.cpp.
Probability BFL::SystemModel< T >::ProbabilityGet | ( | const T & | x_k, |
const T & | x_kminusone, | ||
const T & | u | ||
) |
Get the probability of arriving in a next state.
x_k | the next state (at time k) |
x_kminusone | the current state (at time k-1) |
u | the input |
Definition at line 150 of file systemmodel.cpp.
Probability BFL::SystemModel< T >::ProbabilityGet | ( | const T & | x_k, |
const T & | x_kminusone | ||
) |
Get the probability of arriving in a next state.
(no-input-system)
x_k | the next state (at time k) |
x_kminusone | the current state (at time k-1) |
Definition at line 160 of file systemmodel.cpp.
T BFL::SystemModel< T >::Simulate | ( | const T & | x, |
const T & | u, | ||
int | sampling_method = DEFAULT , |
||
void * | sampling_args = NULL |
||
) |
Simulate the system.
x | current state of the system |
u | input to the system |
sampling_method | the sampling method to be used while sampling from the Conditional Pdf describing the system (if not specified = DEFAULT) |
sampling_args | Sometimes a sampling method can have some extra parameters (eg mcmc sampling) |
Definition at line 126 of file systemmodel.h.
T BFL::SystemModel< T >::Simulate | ( | const T & | x, |
int | sampling_method = DEFAULT , |
||
void * | sampling_args = NULL |
||
) |
Simulate the system (no input system)
x | current state of the system |
sampling_method | the sampling method to be used while sampling from the Conditional Pdf describing the system (if not specified = DEFAULT) |
sampling_args | Sometimes a sampling method can have some extra parameters (eg mcmc sampling) |
Definition at line 139 of file systemmodel.h.
int BFL::SystemModel< T >::StateSizeGet | ( | ) | const |
Get State Size.
Copy constructor SystemModel(const SystemModel<T>& model);
Definition at line 78 of file systemmodel.cpp.
ConditionalPdf< T, T > * BFL::SystemModel< T >::SystemPdfGet | ( | ) |
Get the SystemPDF.
Definition at line 91 of file systemmodel.cpp.
void BFL::SystemModel< T >::SystemPdfSet | ( | ConditionalPdf< T, T > * | ) |
Set the SystemPDF.
a reference to the ConditionalPdf describing the system |
Definition at line 98 of file systemmodel.cpp.
bool BFL::SystemModel< T >::SystemWithoutInputs | ( | ) | const |
Has the system inputs or not.
Definition at line 84 of file systemmodel.cpp.
ConditionalPdf<T,T>* BFL::SystemModel< T >::_SystemPdf [protected] |
ConditionalPdf representing .
Definition at line 59 of file systemmodel.h.
bool BFL::SystemModel< T >::_systemWithoutInputs [protected] |
System with no inputs?
Definition at line 62 of file systemmodel.h.