9#ifndef IMPISD_STUDENT_T_RESTRAINT_H
10#define IMPISD_STUDENT_T_RESTRAINT_H
12#include <IMP/isd/isd_config.h>
26class IMPISDEXPORT StudentTRestraint :
public Restraint {
30 double x_, mu_, sigma_, nu_;
31 bool isx_, ismu_, issigma_, isnu_;
35 double get_mu()
const;
36 double get_sigma()
const;
37 double get_nu()
const;
39 void update_distribution();
55 double sigma,
double nu);
66 StudentTRestraint(Model *m,
double x,
double mu,
double sigma,
Joint Student's t-distribution of Function.
Classes to handle individual model particles. (Note that implementation of inline functions is in int...
Abstract base class for all restraints.
Class for adding derivatives from restraints to the model.
Take Decorator, Particle or ParticleIndex.
Restraint(Model *m, std::string name)
Create a restraint and register it with the model.
double get_probability() const
Get probability (-log score).
virtual double unprotected_evaluate(IMP::DerivativeAccumulator *accum) const override
Return the unweighted score for the restraint.
virtual IMP::ModelObjectsTemp do_get_inputs() const override
Index< ParticleIndexTag > ParticleIndex
IMP::Vector< IMP::WeakPointer< ModelObject > > ModelObjectsTemp
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
A smart pointer to a reference counted object.