8#ifndef IMPSCORE_FUNCTOR_SCORE_H
9#define IMPSCORE_FUNCTOR_SCORE_H
11#include <IMP/score_functor/score_functor_config.h>
18IMPSCOREFUNCTOR_BEGIN_NAMESPACE
30 template <
unsigned int D>
33 double distance)
const;
40 template <
unsigned int D>
43 double distance)
const;
51 template <
unsigned int D>
54 double squared_distance)
const {
62 template <
unsigned int D>
67 return std::numeric_limits<double>::infinity();
76 void show(std::ostream &)
const {}
79IMPSCOREFUNCTOR_END_NAMESPACE
Classes to handle individual model particles. (Note that implementation of inline functions is in int...
A class to store a fixed array of same-typed values.
Class for storing model, its restraints, constraints, and particles.
ParticlesTemp get_particles(Model *m, const ParticleIndexes &ps)
Get the particles from a list of indexes.
Vector< ParticleIndex, std::allocator< ParticleIndex > > ParticleIndexes
A list of particles, each identified by its ParticleIndex.
std::pair< double, double > DerivativePair
A pair representing a function value with its first derivative.
IMP::Vector< IMP::WeakPointer< ModelObject > > ModelObjectsTemp
Functions and adaptors for dealing with particle indexes.
bool get_is_trivially_zero(Model *m, const Array< D, ParticleIndex > &p, double squared_distance) const
ModelObjectsTemp get_inputs(Model *m, const ParticleIndexes &pis) const
double get_score(Model *m, const Array< D, ParticleIndex > &p, double distance) const
Return the score at the passed feature size (eg distance).
double get_maximum_range(Model *m, const Array< D, ParticleIndex > &p) const
DerivativePair get_score_and_derivative(Model *m, const Array< D, ParticleIndex > &p, double distance) const
Return the score and derivative at the passed feature size (eg distance).
Macros to control compiler warnings.
#define IMP_UNUSED(variable)