IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
IMP::isd::vonMisesSufficient Class Reference

vonMisesSufficient More...

#include <IMP/isd/vonMisesSufficient.h>

Inheritance diagram for IMP::isd::vonMisesSufficient:

Detailed Description

vonMisesSufficient

Probability density function and -log(p) of von Mises distribution of N iid von Mises observations, provided through their sufficient statistics. This is much more efficient than multiplying N von Mises densities.

\[ f(\chi|N, R_0, \chi_{exp}, \kappa) = \frac{\exp \left(R_0 \kappa \cos (\chi - \chi_{exp})\right)} {2\pi I_0(\kappa)^N} \]

where

\[ R = \sqrt{\left(\sum_{i=1}^N \cos \chi_{exp}^i\right)^2 + \left(\sum_{i=1}^N \cos \chi_{exp}^i\right)^2} \]

\[ \exp (i \chi_{exp}) = \frac{1}{R} \sum_{j=1}^N \exp(i \chi_{exp}^j) \]

If \(N=1\) and \(\mu_1=\mu_2\) this reduces to the original von Mises distribution with known mean and concentration.

Note
derivative with respect to the mean \(\chi_{exp}\) is not provided.

Definition at line 36 of file vonMisesSufficient.h.

Public Member Functions

 vonMisesSufficient (double chi, Floats obs, double kappa)
 vonMisesSufficient (double chi, unsigned N, double R0, double chiexp, double kappa)
virtual double density () const
virtual double evaluate () const
virtual double evaluate_derivative_kappa () const
virtual double evaluate_derivative_x () const
double get_chiexp ()
double get_kappa ()
double get_N ()
double get_R0 ()
virtual std::string get_type_name () const override
virtual ::IMP::VersionInfo get_version_info () const override
 Get information about the module and version of the object.
double get_x ()
void set_chiexp (double chiexp)
void set_kappa (double kappa)
void set_N (unsigned N)
void set_R0 (double R0)
void set_x (double x)
Public Member Functions inherited from IMP::Object
CheckLevel get_check_level () const
 get_derived_object (self)
 Return this object cast to the most derived subclass.
LogLevel get_log_level () const
void set_check_level (CheckLevel l)
void set_log_level (LogLevel l)
 Set the logging level used in this object.
const std::string & get_name () const
 Get the (not necessarily unique) name of this object.
void set_name (std::string name)
void set_was_used (bool tf) const
void show (std::ostream &out=std::cout) const
virtual void clear_caches ()

Static Public Member Functions

static Floats get_sufficient_statistics (Floats data)
 Compute sufficient statistics from a list of observations.

Additional Inherited Members

Protected Member Functions inherited from IMP::Object
 Object (std::string name)
 Construct an object with the given name.
virtual void do_destroy ()

Constructor & Destructor Documentation

◆ vonMisesSufficient() [1/2]

IMP::isd::vonMisesSufficient::vonMisesSufficient ( double chi,
unsigned N,
double R0,
double chiexp,
double kappa )

compute von Mises given the sufficient statistics

Parameters
[in]chi
[in]Nnumber of observations
[in]R0component of N observations on the x axis ( \(R_0\))
[in]chiexpmean ( \(\chi_{exp}\))
[in]kappaconcentration

Definition at line 45 of file vonMisesSufficient.h.

Here is the call graph for this function:

◆ vonMisesSufficient() [2/2]

IMP::isd::vonMisesSufficient::vonMisesSufficient ( double chi,
Floats obs,
double kappa )

compute von Mises given the raw observations this is equivalent to calling get_sufficient_statistics and then the other constructor.

Parameters
[in]chi
[in]obsa list of observed angles (in radians).
[in]kappaconcentration

Definition at line 62 of file vonMisesSufficient.h.

Here is the call graph for this function:

◆ ~vonMisesSufficient()

virtual IMP::isd::vonMisesSufficient::~vonMisesSufficient ( )
virtual

Definition at line 140 of file vonMisesSufficient.h.

Member Function Documentation

◆ density()

virtual double IMP::isd::vonMisesSufficient::density ( ) const
virtual

Definition at line 85 of file vonMisesSufficient.h.

◆ evaluate()

virtual double IMP::isd::vonMisesSufficient::evaluate ( ) const
virtual

Definition at line 72 of file vonMisesSufficient.h.

◆ evaluate_derivative_kappa()

virtual double IMP::isd::vonMisesSufficient::evaluate_derivative_kappa ( ) const
virtual

Definition at line 80 of file vonMisesSufficient.h.

◆ evaluate_derivative_x()

virtual double IMP::isd::vonMisesSufficient::evaluate_derivative_x ( ) const
virtual

Definition at line 76 of file vonMisesSufficient.h.

◆ get_chiexp()

double IMP::isd::vonMisesSufficient::get_chiexp ( )

Definition at line 92 of file vonMisesSufficient.h.

◆ get_kappa()

double IMP::isd::vonMisesSufficient::get_kappa ( )

Definition at line 94 of file vonMisesSufficient.h.

◆ get_N()

double IMP::isd::vonMisesSufficient::get_N ( )

Definition at line 93 of file vonMisesSufficient.h.

◆ get_R0()

double IMP::isd::vonMisesSufficient::get_R0 ( )

Definition at line 91 of file vonMisesSufficient.h.

◆ get_sufficient_statistics()

Floats IMP::isd::vonMisesSufficient::get_sufficient_statistics ( Floats data)
static

Compute sufficient statistics from a list of observations.

See Mardia and El-Atoum, "Bayesian inference for the von Mises-Fisher distribution ", Biometrika, 1967.

Returns
the number of observations, \(R_0\) (the component on the x axis) and \(\chi_{exp}\)

Definition at line 121 of file vonMisesSufficient.h.

◆ get_type_name()

virtual std::string IMP::isd::vonMisesSufficient::get_type_name ( ) const
overridevirtual

Reimplemented from IMP::Object.

Definition at line 140 of file vonMisesSufficient.h.

◆ get_version_info()

virtual ::IMP::VersionInfo IMP::isd::vonMisesSufficient::get_version_info ( ) const
overridevirtual

Get information about the module and version of the object.

Reimplemented from IMP::Object.

Definition at line 140 of file vonMisesSufficient.h.

Here is the call graph for this function:

◆ get_x()

double IMP::isd::vonMisesSufficient::get_x ( )

Definition at line 90 of file vonMisesSufficient.h.

◆ set_chiexp()

void IMP::isd::vonMisesSufficient::set_chiexp ( double chiexp)

Definition at line 101 of file vonMisesSufficient.h.

◆ set_kappa()

void IMP::isd::vonMisesSufficient::set_kappa ( double kappa)

Definition at line 109 of file vonMisesSufficient.h.

◆ set_N()

void IMP::isd::vonMisesSufficient::set_N ( unsigned N)

Definition at line 103 of file vonMisesSufficient.h.

◆ set_R0()

void IMP::isd::vonMisesSufficient::set_R0 ( double R0)

Definition at line 99 of file vonMisesSufficient.h.

◆ set_x()

void IMP::isd::vonMisesSufficient::set_x ( double x)

Definition at line 97 of file vonMisesSufficient.h.


The documentation for this class was generated from the following file: