Clipper
Public Member Functions
clipper::Prob_phi_2d Class Reference

2-d angular probability distibution class More...

#include <ramachandran.h>

Inheritance diagram for clipper::Prob_phi_2d:
clipper::Ramachandran

List of all members.

Public Member Functions

void init (const int &size)
 initialise: with sampling
void accumulate (const ftype32 table[])
 accumulate new table of samples to probability
void accumulate (const ftype &phi1, const ftype &phi2, ftype wgt=1.0)
 accumulate new sample to probability
void normalise ()
 normalise to integrate to 1/(2pi)^2
ftype probability (const ftype &phi1, const ftype &phi2) const
 get probability for a particular pair of angles
String format () const
 formatted string representation (as C++ code)
const ftypedata (const int &i, const int &j) const
 2d read access
ftypedata (const int &i, const int &j)
 2d write access

Detailed Description

2-d angular probability distibution class

Base for Ramachandran class (and other similar classes, such as a pseudo-ramachandran plot or the JPD of two phases ).


Member Function Documentation

void clipper::Prob_phi_2d::accumulate ( const ftype phi1,
const ftype phi2,
ftype  wgt = 1.0 
)

accumulate new sample to probability

linear interpolation onto grid

References data(), clipper::Util::intf(), clipper::Util::mod(), and clipper::Util::twopi().

void clipper::Prob_phi_2d::normalise ( )

normalise to integrate to 1/(2pi)^2

normalise mean value to 1/(2pi)^2

References clipper::Util::twopi().

Referenced by clipper::Ramachandran::init().

ftype clipper::Prob_phi_2d::probability ( const ftype phi1,
const ftype phi2 
) const

get probability for a particular pair of angles

linear interpolation off of grid

Reimplemented in clipper::Ramachandran.

References data(), clipper::Util::intf(), clipper::Util::mod(), and clipper::Util::twopi().


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