#include <StateSpaceGP.h>
Definition at line 21 of file StateSpaceGP.h.
Public Member Functions | |
StateSpaceGP (MeanFunctionBase &meanIn, KernelBase &kernelIn, boost::property_tree::ptree options=boost::property_tree::ptree()) | |
StateSpaceGP (std::shared_ptr< MeanFunctionBase > meanIn, std::shared_ptr< KernelBase > covKernelIn, boost::property_tree::ptree options=boost::property_tree::ptree()) | |
virtual | ~StateSpaceGP ()=default |
virtual Eigen::MatrixXd | Sample (Eigen::MatrixXd const ×) override |
virtual std::pair< Eigen::MatrixXd, Eigen::MatrixXd > | Predict (Eigen::MatrixXd const &newLocs, CovarianceType covType) override |
virtual Eigen::MatrixXd | PredictMean (Eigen::MatrixXd const &newPts) override |
virtual double | LogLikelihood (Eigen::MatrixXd const &xs, Eigen::MatrixXd const &vals) override |
virtual double | MarginalLogLikelihood (Eigen::Ref< Eigen::VectorXd > grad, bool computeGrad=true) override |
std::shared_ptr< muq::Modeling::LinearSDE > | GetSDE () |
std::shared_ptr< muq::Modeling::LinearOperator > | GetObs () |
void | SetObs (std::shared_ptr< muq::Modeling::LinearOperator > newObs) |
Eigen::MatrixXd | GetCov () |
Public Member Functions inherited from muq::Approximation::GaussianProcess | |
GaussianProcess (MeanFunctionBase &meanIn, KernelBase &kernelIn) | |
GaussianProcess (std::shared_ptr< MeanFunctionBase > meanIn, std::shared_ptr< KernelBase > covKernelIn) | |
virtual | ~GaussianProcess ()=default |
virtual GaussianProcess & | Condition (Eigen::Ref< const Eigen::MatrixXd > const &loc, Eigen::Ref< const Eigen::MatrixXd > const &vals) |
virtual GaussianProcess & | Condition (Eigen::Ref< const Eigen::MatrixXd > const &loc, Eigen::Ref< const Eigen::MatrixXd > const &vals, double obsVar) |
virtual GaussianProcess & | Condition (std::shared_ptr< ObservationInformation > obs) |
std::shared_ptr< muq::Modeling::Gaussian > | Discretize (Eigen::MatrixXd const &pts) |
virtual void | Optimize () |
virtual double | MarginalLogLikelihood () |
virtual double | MarginalLogLikelihood (Eigen::Ref< Eigen::VectorXd > grad) |
std::shared_ptr< MeanFunctionBase > | Mean () |
std::shared_ptr< KernelBase > | Kernel () |
Public Attributes | |
const int | stateDim |
Additional Inherited Members | |
Public Types inherited from muq::Approximation::GaussianProcess | |
enum | CovarianceType { DiagonalCov , BlockCov , FullCov , NoCov } |
|
inline |
Definition at line 25 of file StateSpaceGP.h.
StateSpaceGP::StateSpaceGP | ( | std::shared_ptr< MeanFunctionBase > | meanIn, |
std::shared_ptr< KernelBase > | covKernelIn, | ||
boost::property_tree::ptree | options = boost::property_tree::ptree() |
||
) |
Definition at line 18 of file StateSpaceGP.cpp.
|
virtualdefault |
|
private |
Definition at line 27 of file StateSpaceGP.cpp.
|
private |
|
inline |
Definition at line 57 of file StateSpaceGP.h.
References L.
|
inline |
Definition at line 53 of file StateSpaceGP.h.
References obsOp.
|
inline |
Definition at line 51 of file StateSpaceGP.h.
References sde.
|
overridevirtual |
Reimplemented from muq::Approximation::GaussianProcess.
Definition at line 286 of file StateSpaceGP.cpp.
|
overridevirtual |
Reimplemented from muq::Approximation::GaussianProcess.
Definition at line 292 of file StateSpaceGP.cpp.
|
overridevirtual |
Evaluate the mean and covariance at the locations in newLocs
Reimplemented from muq::Approximation::GaussianProcess.
Definition at line 97 of file StateSpaceGP.cpp.
References muq::Approximation::GaussianProcess::BlockCov, muq::Approximation::GaussianProcess::coDim, ComputeAQ(), muq::Approximation::GaussianProcess::DiagonalCov, muq::Approximation::GaussianProcess::FullCov, L, mean, muq::Approximation::GaussianProcess::observations, obsOp, muq::Approximation::GaussianProcess::Predict(), sdeA, sdeQ, stateDim, and nlohmann::to_string().
Referenced by PredictMean().
|
overridevirtual |
Evaluate the GP mean at the locations in newPts
Reimplemented from muq::Approximation::GaussianProcess.
Definition at line 77 of file StateSpaceGP.cpp.
References muq::Approximation::GaussianProcess::NoCov, and Predict().
|
overridevirtual |
Draw a random sample from the GP at the specified points.
Reimplemented from muq::Approximation::GaussianProcess.
Definition at line 48 of file StateSpaceGP.cpp.
References L, muq::Approximation::GaussianProcess::observations, obsOp, and sde.
void StateSpaceGP::SetObs | ( | std::shared_ptr< muq::Modeling::LinearOperator > | newObs | ) |
Definition at line 302 of file StateSpaceGP.cpp.
References obsOp, and nlohmann::to_string().
|
private |
Definition at line 38 of file StateSpaceGP.cpp.
References muq::Approximation::GaussianProcess::hasNewObs, and muq::Approximation::GaussianProcess::observations.
|
private |
Definition at line 88 of file StateSpaceGP.h.
|
private |
Definition at line 76 of file StateSpaceGP.h.
Referenced by ComputeAQ().
|
private |
Definition at line 85 of file StateSpaceGP.h.
|
private |
Definition at line 87 of file StateSpaceGP.h.
Referenced by Predict().
|
private |
|
private |
Definition at line 79 of file StateSpaceGP.h.
Referenced by ComputeAQ(), GetSDE(), and Sample().
|
private |
Definition at line 75 of file StateSpaceGP.h.
Referenced by ComputeAQ(), and Predict().
|
private |
Definition at line 75 of file StateSpaceGP.h.
Referenced by ComputeAQ(), and Predict().
const int muq::Approximation::StateSpaceGP::stateDim |
Definition at line 61 of file StateSpaceGP.h.
Referenced by Predict().