8#ifndef IMPISD_GAUSSIAN_PROCESS_INTERPOLATION_RESTRAINT_H
9#define IMPISD_GAUSSIAN_PROCESS_INTERPOLATION_RESTRAINT_H
11#include <IMP/isd/isd_config.h>
13#include <boost/scoped_ptr.hpp>
24class GaussianProcessInterpolationScoreState;
35 void update_mean_and_covariance();
42 void create_score_state();
58 void set_use_cg(
bool use,
double tol) { mvn_->set_use_cg(use, tol); }
62 double get_minus_exponent()
const;
80 friend class GaussianProcessInterpolationScoreState;
83#if !defined(IMP_DOXYGEN) && !defined(SWIG)
84class IMPISDEXPORT GaussianProcessInterpolationScoreState :
public ScoreState {
89 GaussianProcessInterpolationScoreState(
92 "GaussianProcessInterpolationScoreState%1%"),
97 friend class GaussianProcessInterpolationRestraint;
98 virtual void do_before_evaluate()
override;
Normal distribution of Function.
Normal distribution of Function.
A nullptr-initialized pointer to an IMP Object.
Abstract base class for all restraints.
Class for adding derivatives from restraints to the model.
Restraint(Model *m, std::string name)
Create a restraint and register it with the model.
ScoreStates maintain invariants in the Model.
gaussian process restraint
GaussianProcessInterpolationRestraint(Model *m, GaussianProcessInterpolation *gpi)
Eigen::MatrixXd get_hessian() const
Get hessian of the minus log likelihood.
void set_use_cg(bool use, double tol)
Use conjugate gradients when possible (default false).
double get_logdet_hessian() const
Get log determinant of hessian.
double get_minus_log_normalization() const
Get minus log normalization and minus exponent separately.
double get_probability() const
double unprotected_evaluate(IMP::DerivativeAccumulator *accum) const override
Return the unweighted score for the restraint.
IMP::ModelObjectsTemp do_get_inputs() const override
FloatsList get_hessian(bool unused) const
call this one from Python
GaussianProcessInterpolation.
Various general useful macros for IMP.
IMP::Vector< Floats > FloatsList
Standard way to pass a bunch of Floats values.
IMP::Vector< IMP::WeakPointer< ModelObject > > ModelObjectsTemp
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
A smart pointer to a ref-counted Object that is a class member.
Smart pointer to Object-derived classes that does not refcount.