11#ifndef IMPSCORE_FUNCTOR_SINGLETON_STATISTICAL_H
12#define IMPSCORE_FUNCTOR_SINGLETON_STATISTICAL_H
14#include <IMP/score_functor/score_functor_config.h>
16#include "internal/SASTable.h"
18IMPSCOREFUNCTOR_BEGIN_NAMESPACE
48template <
class Key,
bool INTERPOLATE>
49class SingletonStatistical {
50 typedef internal::SASTable<INTERPOLATE> Table;
57 : table_(
new Table(data_file,
Key())), key_(k) {}
61 int table_index = m->get_attribute(key_, pi);
62 if (table_index == -1)
return 0;
63 return table_->get_score(table_index, area);
67IMPSCOREFUNCTOR_END_NAMESPACE
A nullptr-initialized pointer to an IMP Object.
Class for storing model, its restraints, constraints, and particles.
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
Index< ParticleIndexTag > ParticleIndex
Key< 1 > IntKey
The type used to identify int attributes in the Particles.
A smart pointer to a ref-counted Object that is a class member.