ssmkit
master-68aed98
|
A Memoryless (independent/white) random process. More...
Public Member Functions | |
Memoryless (distribution::Conditional< TPDF, TParamMap > cpdf) | |
Constructor. More... | |
auto | initialize () -> decltype(std::declval< TPDF >().random()) |
initialize process More... | |
template<typename... Args> | |
auto | random (const Args &...args) -> decltype(std::declval< TPDF >().random()) |
Sample from process. More... | |
template<typename... Args> | |
double | likelihood (const decltype(std::declval< TPDF >().random())&rv, const Args &...args) |
Calculate likelihood. More... | |
distribution::Conditional < TPDF, TParamMap > & | getCPDF () |
Returns a reference to internal CPDF. More... | |
Public Member Functions inherited from BaseProcess< Memoryless< TPDF, TParamMap > > | |
decltype(auto) | random_n (const size_t &n, const TArgs &...args) |
A Memoryless (independent/white) random process.
Implementation of memoryless process defined using CPDF \(p(\mathbf{x}_k| y^0_k, \cdots, y^N_k)\)
Definition at line 28 of file memoryless.hpp.
|
inline |
Constructor.
The process is constructed from a distribution::Conditional PDF (cpdf
). The condition variables ( \(y_0, \cdots, y_N\)) are disposed to the interface of random() and likelihood() methods.
cpdf | distribution::Conditional PDF \(p(\mathbf{x}_k| y^0_k, \cdots, y^N_k)\) |
Definition at line 45 of file memoryless.hpp.
|
inline |
initialize process
The memoryless process has no state and initialization. This method is provided for interface consistency of process class.
Definition at line 56 of file memoryless.hpp.
References Memoryless< TPDF, TParamMap >::random().
|
inline |
Sample from process.
Samples one random variable \(\mathbf{x}_k\) from the process.
args | ... Process condition (control) variables ( \(y^0_k, \cdots, y^N_k\)) if any. |
Definition at line 72 of file memoryless.hpp.
Referenced by Memoryless< TPDF, TParamMap >::initialize().
|
inline |
Calculate likelihood.
Calculate the likelihood of one random variable \(p(\mathbf{x}_k| y^0_k, \cdots, y^N_k)\).
rv | The random variable \(\mathbf{x}_k\). |
args | ... Process condition (control) variables ( \(y^0_k, \cdots, y^N_k\)) if any. |
Definition at line 86 of file memoryless.hpp.
|
inline |
Returns a reference to internal CPDF.
Definition at line 93 of file memoryless.hpp.