IMP Reference Guide
2.10.1
The Integrative Modeling Platform
|
Responsible for performing coarse fitting between two density objects. More...
#include <IMP/em/CoarseCC.h>
Responsible for performing coarse fitting between two density objects.
The pixels involved are derived from the positions of N particles.
Definition at line 28 of file CoarseCC.h.
Public Member Functions | |
virtual std::string | get_type_name () const |
virtual ::IMP::VersionInfo | get_version_info () const |
Get information about the module and version of the object. More... | |
Public Member Functions inherited from IMP::Object | |
virtual void | clear_caches () |
CheckLevel | get_check_level () const |
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. More... | |
void | set_was_used (bool tf) const |
void | show (std::ostream &out=std::cout) const |
const std::string & | get_name () const |
void | set_name (std::string name) |
Static Public Member Functions | |
static float | calc_score (DensityMap *data, SampledDensityMap *model_map, float scalefactor, bool recalc_rms=true, bool resample=true, FloatPair norm_factors=FloatPair(0., 0.)) |
Calculates the value of the EM fitting term. More... | |
static double | cross_correlation_coefficient (const DensityMap *grid1, const DensityMap *grid2, float grid2_voxel_data_threshold, bool allow_padding=false, FloatPair norm_factors=FloatPair(0., 0.)) |
Calculates the cross correlation coefficient between two maps. More... | |
static float | local_cross_correlation_coefficient (const DensityMap *em_map, DensityMap *model_map, float voxel_data_threshold) |
Local cross correlation function. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from IMP::Object | |
Object (std::string name) | |
Construct an object with the given name. More... | |
virtual void | do_destroy () |
|
static |
Calculates the value of the EM fitting term.
[in] | data | DensityMap class containing the EM map. note: correct RMSD and mean MUST be in the header! |
[in] | model_map | SampledDensityMap class prepared to contain the simulated EM map for the model. |
[in] | scalefactor | scale factor to apply to the value of the cross correlation term |
[in] | recalc_rms | determines whether the RMS of both maps should be recalculated prior to the correlation calculation. False is faster, but potentially inaccurate |
[in] | resample | if true, the model density map is resampled |
[in] | norm_factors | if set these precalculated terms are used for normalization |
|
static |
Calculates the cross correlation coefficient between two maps.
Cross correlation coefficient between the em density and the density of a model. The function applied is: \(\frac{\sum_{i=1}^{N}{{td}_i}{{md}_i}-{N} {{mean}_{td}} {{mean}_{md}}} {N\sigma_{{td}}\sigma_{{md}}}\), such that \(N\) is the number of voxels, \({td}\) is the target density, \({tm}\) is the model density,
[in] | grid1 | The first 3D grid |
[in] | grid2 | The second 3D grid |
[in] | grid2_voxel_data_threshold | voxels with value lower than threshold in grid2 are not summed (avoid calculating correlation on voxels below the threshold |
[in] | allow_padding | determines whether the two maps should be padded to have the same size before the calculation is performed. If set to false and the grids are not of the same size, the function will throw an exception. |
[in] | norm_factors | if set these precalculated terms are used for normalization |
|
virtual |
Get information about the module and version of the object.
Reimplemented from IMP::Object.
Reimplemented in IMP::em::CoarseCCatIntervals.
Definition at line 120 of file CoarseCC.h.
|
static |
Local cross correlation function.