IMP logo

IMP::em::KernelParameters Class Reference


Detailed Description

Calculates and stores Gaussian kernel parameters as a function of a specufuc radius.

Public Member Functions

bool are_params_set (float radius, float eps=0.001)
float get_inv_rsigsq () const
 Gets the value of inv_rsigsq parameter.
float get_lim () const
 Gets the value of lim parameter.
const
RadiusDependentKernelParameters
get_params (float radius, float eps=0.001)
 Finds the precomputed parameters given a particle radius.
float get_rkdist () const
 Gets the value of rkdist parameter.
float get_rnormfac () const
 Gets the value of rnormfac parameter.
float get_rsig () const
 Gets the value of rsig parameter.
float get_rsigsq () const
 Gets the value of rsig square parameter.
float get_sq2pi3 () const
 Gets the value of sq2pi3 parameter.
float get_timessig () const
 Gets the value of timessig parameter.
 KernelParameters (float resolution)
void set_params (float radius)
 Sets the parameters that depend on the radius of a given particle.

Protected Member Functions

void init (float resolution)

Protected Attributes

bool initialized_
float inv_rsigsq_
float lim_
std::map< float, const
RadiusDependentKernelParameters * > 
radii2params_
float rkdist_
float rnormfac_
float rsig_
float rsigsq_
float sq2pi3_
float timessig_

Member Function Documentation

const RadiusDependentKernelParameters* IMP::em::KernelParameters::get_params ( float  radius,
float  eps = 0.001 
)

Finds the precomputed parameters given a particle radius.

Parameters:
[in] radius searching for parameters of this radius
[in] eps used for numerical stability
Note:
The parameters are indexes by the radius. To maintain numeratical stability, look for a radius within +-eps from the queried radius.

the function return NULL and writes a warning if parameters for this radius were not found.

void IMP::em::KernelParameters::set_params ( float  radius  ) 

Sets the parameters that depend on the radius of a given particle.

The other variables of the parameters (rsigsq,timessig,sq2pi3,inv_rsigsq,rnormfac,rkdist) must have been set.

Parameters:
[in] radius the radius


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

Generated on Mon Mar 8 23:09:01 2010 for IMP by doxygen 1.5.8