sampling.hpp
来自「This collection of C++ templates wraps t」· HPP 代码 · 共 26 行
HPP
26 行
#ifndef ULAPACK_SAMPLING_HPP_
#define ULAPACK_SAMPLING_HPP_
namespace ulapack {
namespace ublas = boost::numeric::ublas;
class GaussLikelihood {
public:
GaussLikelihood(const Vector &p, const Matrix &P);
double likelihood(const Vector &x) const;
double loglikelihood(const Vector &x) const;
private:
double compute_numerator(const Vector &x) const;
static const double PI; // constant pi
double C; // likelihood normalising constant
Matrix Pfi; // inverse of Cholesky decomposed covariance
const Vector &gmean; // store Gaussian mean
};
}
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?