8#ifndef IMPISD_PENALIZED_COMPLEXITY_PRIOR_H
9#define IMPISD_PENALIZED_COMPLEXITY_PRIOR_H
11#include <IMP/isd/isd_config.h>
54 virtual void do_update_sufficient_statistics(
Floats Dxis)
override;
55 virtual void do_update_sufficient_statistics(
Floats Dxis,
Floats Jxis);
56 virtual Floats do_get_sufficient_statistics()
const override;
57 virtual double do_evaluate()
const override;
67 std::string name =
"PenalizedComplexityPrior %1%");
71 do_update_sufficient_statistics(Dxis, Jxis);
109 double sqrtDxi_, Jxi_, nloga_;
OneDimensionalSufficientDistribution(std::string name="OneDimensionalSufficientDistribution %1%")
Constructor.
Penalized complexity prior.
void set_alpha(double v)
Set density in tail.
PenalizedComplexityPrior(double Dxi, double Jxi, double alpha, std::string name="PenalizedComplexityPrior %1%")
Create from normalized KL divergence.
void set_Dxi(double v)
Set normalized KL divergence .
double evaluate_derivative_xi(double JJxi) const
Evaluate derivative of negative log-density wrt parameter .
void update_sufficient_statistics(Floats Dxis, Floats Jxis)
Update sufficient statistics with values and derivatives.
double get_alpha() const
Get density in tail.
double get_Jxi() const
Get derivative of normalized KL divergence wrt .
double evaluate_derivative_alpha() const
Evaluate derivative of negative log-density wrt alpha.
double evaluate_derivative_Dxi() const
Evaluate derivative of negative log-density wrt .
double evaluate_derivative_Jxi() const
Evaluate derivative of negative log-density wrt derivative of .
void set_Jxi(double v)
Set derivative of normalized KL divergence wrt .
double get_Dxi() const
Get normalized KL divergence .
Base class for probability distributions.
IMP::Vector< IMP::Pointer< PenalizedComplexityPrior > > PenalizedComplexityPriors
IMP::Vector< Float > Floats
Standard way to pass a bunch of Float values.
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing lists of object pointers.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.