SLIKMC  1.0
 All Classes Functions Variables Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
BFactor Class Reference

The class BFactor is used to initialize and store B-factors database, evaluate the probability densities of conformations according to B-factors. More...

#include <BFactor.h>

Public Member Functions

 BFactor (PProtein *protein)
 Construct a B-factors database for a specific chain. The chain must be the top level chain in the sampling problem.
 
double evalAtomPositions (PProtein *chain, const int s, const int e)
 Evaluate a chain (or its subchain) according to B-factors. More...
 
void output (char *filename)
 Output atom positions and their B-factors to a file. More...
 

Private Member Functions

double getProbDensity_log (const Vector3 &mean, const double variance, const Vector3 &position) const
 Evaluate probability density of an atom position given desired atom position and B-factor. More...
 
double getProbDensity_log (const double mean, const double variance, const double x)
 Get probability density of one value in a given normal distribution. More...
 

Private Attributes

vector< string > residue_name
 
vector< vector< string > > atom_name
 
vector< vector< Vector3 > > atom_pos
 
vector< vector< double > > atom_bfactors
 
vector< vector< double > > atom_variance
 

Detailed Description

The class BFactor is used to initialize and store B-factors database, evaluate the probability densities of conformations according to B-factors.

Member Function Documentation

double BFactor::evalAtomPositions ( PProtein *  chain,
const int  s,
const int  e 
)

Evaluate a chain (or its subchain) according to B-factors.

Parameters
chainthe chain to be evaluated
sindex of starting residue
eindex of ending residue
Returns
products of probability densities of all backbone atoms in logarithm
double BFactor::getProbDensity_log ( const Vector3 &  mean,
const double  variance,
const Vector3 &  position 
) const
private

Evaluate probability density of an atom position given desired atom position and B-factor.

Parameters
meandesired atom position
variancevariance of each dimension
positionthe atom position to be evaluated
Returns
probability density of the atom position in logarithm
double BFactor::getProbDensity_log ( const double  mean,
const double  variance,
const double  x 
)
private

Get probability density of one value in a given normal distribution.

Parameters
meanmean of the normal distribution
variancevariance of the normal distribution
xvalue to be evaluated
Returns
probability density of x in logarithm
void BFactor::output ( char *  filename)

Output atom positions and their B-factors to a file.

Parameters
filenameoutput filename

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