|
IMP Reference Guide
develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
|
Create a single key/single particle statistical potential from a file. More...
#include <IMP/score_functor/SingletonStatistical.h>
Create a single key/single particle statistical potential from a file.
The Key passed as a template argument is used to determine how to map the name of the type as described in the loaded file to table index. That is, if atom::ResidueKey is passed as the Key, the potential will expect a file which has one line for each residue name.
The expected file format is:
bin_width number [offset]
key_0 bin0 bin1 bin2...
key_1 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 is the number of particle types.
| [in] | Key | is an IMP::Key which maps between names and indices |
| [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 49 of file SingletonStatistical.h.
Public Member Functions | |
| SingletonStatistical (IntKey k, TextInput data_file=get_data_path("soap_score_sas.lib")) | |
| double | get_score (Model *m, const ParticleIndex pi, double area) const |
| IMP::score_functor::SingletonStatistical< Key, INTERPOLATE >::SingletonStatistical | ( | IntKey | k, |
| TextInput | data_file = get_data_path("soap_score_sas.lib") ) |
Definition at line 55 of file SingletonStatistical.h.
| double IMP::score_functor::SingletonStatistical< Key, INTERPOLATE >::get_score | ( | Model * | m, |
| const ParticleIndex | pi, | ||
| double | area ) const |
Definition at line 59 of file SingletonStatistical.h.