⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sampling.hpp

📁 This collection of C++ templates wraps the FORTRAN or C interfaces for LAPACK so that they integrate
💻 HPP
字号:

#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -