Class for discrete System Models.
More...
#include <discretesystemmodel.h>
|
| DiscreteSystemModel (DiscreteConditionalPdf *systempdf=NULL) |
| Constructor. More...
|
|
virtual | ~DiscreteSystemModel () |
| Destructor.
|
|
| DiscreteSystemModel (const DiscreteSystemModel &) |
| Copy constructor.
|
|
unsigned int | NumStatesGet () const |
| Get the number of discrete states.
|
|
int | StateSizeGet () const |
| Get State Size. More...
|
|
bool | SystemWithoutInputs () const |
| Has the system inputs or not.
|
|
ConditionalPdf< int, int > * | SystemPdfGet () |
| Get the SystemPDF. More...
|
|
void | SystemPdfSet (ConditionalPdf< int, int > *pdf) |
| Set the SystemPDF. More...
|
|
int | Simulate (const int &x, const int &u, int sampling_method=DEFAULT, void *sampling_args=NULL) |
| Simulate the system. More...
|
|
int | Simulate (const int &x, int sampling_method=DEFAULT, void *sampling_args=NULL) |
| Simulate the system (no input system) More...
|
|
Probability | ProbabilityGet (const int &x_k, const int &x_kminusone, const int &u) |
| Get the probability of arriving in a next state. More...
|
|
Probability | ProbabilityGet (const int &x_k, const int &x_kminusone) |
| Get the probability of arriving in a next state. More...
|
|
Class for discrete System Models.
Class representing discrete System Models, ie. System Models for which BOTH states and inputs are discrete variables!
Definition at line 30 of file discretesystemmodel.h.
§ DiscreteSystemModel()
Constructor.
- Parameters
-
systempdf | ConditionalPdf<int> representing P(X_k | X_{k-1}, U_{k}) |
- See also
- SystemPdf
§ ProbabilityGet() [1/2]
Probability ProbabilityGet |
( |
const int & |
x_k, |
|
|
const int & |
x_kminusone, |
|
|
const int & |
u |
|
) |
| |
|
inherited |
Get the probability of arriving in a next state.
- Parameters
-
x_k | the next state (at time k) |
x_kminusone | the current state (at time k-1) |
u | the input |
- Returns
- the probability value
Definition at line 151 of file systemmodel.h.
§ ProbabilityGet() [2/2]
Probability ProbabilityGet |
( |
const int & |
x_k, |
|
|
const int & |
x_kminusone |
|
) |
| |
|
inherited |
Get the probability of arriving in a next state.
(no-input-system)
- Parameters
-
x_k | the next state (at time k) |
x_kminusone | the current state (at time k-1) |
- Returns
- the probability value
Definition at line 161 of file systemmodel.h.
§ Simulate() [1/2]
int Simulate |
( |
const int & |
x, |
|
|
const int & |
u, |
|
|
int |
sampling_method = DEFAULT , |
|
|
void * |
sampling_args = NULL |
|
) |
| |
|
inherited |
Simulate the system.
- Parameters
-
x | current state of the system |
u | input to the system |
- Returns
- State where we arrive by simulating the system model for 1 step
- Parameters
-
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) |
- Note
- Maybe the return value would better be a Sample<T> instead of a T
Definition at line 126 of file systemmodel.h.
§ Simulate() [2/2]
int Simulate |
( |
const int & |
x, |
|
|
int |
sampling_method = DEFAULT , |
|
|
void * |
sampling_args = NULL |
|
) |
| |
|
inherited |
Simulate the system (no input system)
- Parameters
-
x | current state of the system |
- Returns
- State where we arrive by simulating the system model for 1 step
- Note
- Maybe the return value would better be a Sample<T> instead of a T
- Parameters
-
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.
§ StateSizeGet()
int StateSizeGet |
( |
| ) |
const |
|
inherited |
Get State Size.
Copy constructor SystemModel(const SystemModel<T>& model);
- Returns
- the statesize of the system
Definition at line 79 of file systemmodel.h.
§ SystemPdfGet()
§ SystemPdfSet()
The documentation for this class was generated from the following file: