Clipper
Public Member Functions | List of all members
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

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 More...
 
void normalise ()
 normalise to integrate to 1/(2pi)^2 More...
 
ftype probability (const ftype &phi1, const ftype &phi2) const
 get probability for a particular pair of angles More...
 
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

void clipper::Prob_phi_2d::normalise ( )

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

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

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


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