IMP
2.0.1
The Integrative Modeling Platform
|
#include <IMP/score_functor/Statistical.h>
Public Member Functions | |
Statistical (IntKey k, double threshold, base::TextInput data_file) | |
Statistical (IntKey k, double threshold, base::TextInput data_file, unsigned int shift) | |
bool | get_is_trivially_zero (Model *m, const base::Array< 2, ParticleIndex > &p, double squared_distance) const |
double | get_maximum_range (Model *, const base::Array< 2, ParticleIndex > &) const |
double | get_score (Model *m, const base::Array< 2, ParticleIndex > &pp, double distance) const |
DerivativePair | get_score_and_derivative (Model *m, const base::Array< 2, ParticleIndex > &pp, double distance) const |
![]() | |
ModelObjectsTemp | get_inputs (Model *m, const ParticleIndexes &pis) const |
template<unsigned int D> | |
bool | get_is_trivially_zero (Model *m, const base::Array< D, ParticleIndex > &p, double squared_distance) const |
template<unsigned int D> | |
double | get_maximum_range (Model *m, const base::Array< D, ParticleIndex > &p) const |
template<unsigned int D> | |
double | get_score (Model *m, const ParticleIndexTuple< D > &p, double distance) const |
template<unsigned int D> | |
DerivativePair | get_score_and_derivative (Model *m, const ParticleIndexTuple< D > &p, double distance) const |
void | show (std::ostream &) const |
Create a pairwise statistical potential from a file. The Keys passed as a template argument are used to determine how to map the names of the types as described in the loaded file to indexes. That is, if atom::ResidueKey is passed as the Keys, the potential will expect a file which has one line for each pair of residue names. The expected file format is:
bin_width number_a number_b [offset] key_0a key_0b bin0 bin1 bin2... key_1a key_1b bin0 bin1 bin2...
The order of the lines (after the first one) does not matter. The bin_width is how much distance is allocated per bin (the distance used is that between the points). number_a and number_b are the numbers of particle types (number_b should only be specified if BIPARTITE is set).
[in] | Key | is an IMP::Key which maps between names and indices |
[in] | BIPARTITE | If true, the two sets of particles being stored are different (e.g. a protein atom and a ligand atom), otherwise they are assumed to both be the same. Appropriate values must be provided in the file. |
[in] | INTERPOLATE | If true, even the scores without derivatives are spline interpolated. If false, only the evaluation of derivatives is interpolated with a spline. |
Definition at line 52 of file Statistical.h.
IMP::score_functor::Statistical< Key, BIPARTITE, INTERPOLATE, SPARSE >::Statistical | ( | IntKey | k, |
double | threshold, | ||
base::TextInput | data_file | ||
) |
[in] | k | The attribute to use for determining the particle types |
[in] | threshold | The maximum distance to score |
[in] | data_file | Where to load the file from. |
Definition at line 61 of file Statistical.h.
IMP::score_functor::Statistical< Key, BIPARTITE, INTERPOLATE, SPARSE >::Statistical | ( | IntKey | k, |
double | threshold, | ||
base::TextInput | data_file, | ||
unsigned int | shift | ||
) |
[in] | k | The attribute to use for determining the particle types |
[in] | threshold | The maximum distance to score |
[in] | data_file | Where to load the file from. |
[in] | shift | The offset for the types of the second set of types. eg, if the score is on protein and ligand atoms, the ligand atom types start with the value shift. |
Definition at line 77 of file Statistical.h.