IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
IMP::score_functor::SingletonStatistical< Key, INTERPOLATE > Class Template Reference

Create a single key/single particle statistical potential from a file. More...

#include <IMP/score_functor/SingletonStatistical.h>

Detailed Description

template<class Key, bool INTERPOLATE>
class IMP::score_functor::SingletonStatistical< Key, INTERPOLATE >

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.

Note
The values read in the file are for bins. That is, the first bin is from offset to offset+width. The second is offset+width to offset+ 2width. As a result, when interpolation is used, the function achieves the bin value at the center of the bin.
Parameters
[in]Keyis an IMP::Key which maps between names and indices
[in]INTERPOLATEIf 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

Constructor & Destructor Documentation

◆ SingletonStatistical()

template<class Key, bool INTERPOLATE>
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.

Member Function Documentation

◆ get_score()

template<class Key, bool INTERPOLATE>
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.


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