本文整理汇总了C++中Gaussian::DimensionGet方法的典型用法代码示例。如果您正苦于以下问题:C++ Gaussian::DimensionGet方法的具体用法?C++ Gaussian::DimensionGet怎么用?C++ Gaussian::DimensionGet使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Gaussian
的用法示例。
在下文中一共展示了Gaussian::DimensionGet方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: AnalyticConditionalGaussian
/** @note Because of the virtual public inheritance, we create the Pdf
baseclass ourselves
*/
CondGausAddNoise::CondGausAddNoise(const Gaussian& additiveNoise,
int num_conditional_arguments)
: AnalyticConditionalGaussian(additiveNoise.DimensionGet(),
num_conditional_arguments)
, _additiveNoise_Mu (additiveNoise.ExpectedValueGet())
, _additiveNoise_Sigma(additiveNoise.CovarianceGet())
{}
示例2: assert
// constructor
NonLinearAnalyticConditionalGaussian_Ginac::NonLinearAnalyticConditionalGaussian_Ginac
(const GiNaC::matrix& func,
const vector<GiNaC::symbol>& u,
const vector<GiNaC::symbol>& x,
const Gaussian& additiveNoise,
const vector<GiNaC::symbol>& cond )
:AnalyticConditionalGaussianAdditiveNoise(additiveNoise,3),
func_sym (func),
cond_sym (cond),
u_sym (u),
x_sym (x),
cond_size (cond_sym.size()),
u_size (u_sym.size()),
x_size (x_sym.size()),
func_size (func_sym.rows()),
dfunc_dcond (cond_size),
dfunc_dx (x_size)
{
// test for consistent input
assert (func_sym.cols() == 1);
assert (additiveNoise.DimensionGet() == cond_size);
// derive func to cond
for (unsigned int i=0; i < cond_size; i++)
dfunc_dcond[i] = func_sym.diff(cond_sym[i]);
// derive func to x
for (unsigned int i=0; i < x_size; i++)
dfunc_dx[i] = func_sym.diff(x_sym[i]);
}