IMP logo
IMP Reference Guide  2.22.0
The Integrative Modeling Platform
IMP::score_functor::AddScores< BaseDistanceScore0, BaseDistanceScore1 > Class Template Reference

#include <IMP/score_functor/AddScores.h>

+ Inheritance diagram for IMP::score_functor::AddScores< BaseDistanceScore0, BaseDistanceScore1 >:

Detailed Description

template<class BaseDistanceScore0, class BaseDistanceScore1>
class IMP::score_functor::AddScores< BaseDistanceScore0, BaseDistanceScore1 >

Apply two different scores and return the sum of the results.

Examples:
atom/dope_and_excluded_volume.cpp.

Definition at line 18 of file AddScores.h.

Public Member Functions

 AddScores (BaseDistanceScore0 p0, BaseDistanceScore1 p1)
 
ModelObjectsTemp get_inputs (Model *m, const ParticleIndexes &pis) const
 
template<unsigned int D>
bool get_is_trivially_zero (Model *m, const Array< D, ParticleIndex > &p, double squared_distance) const
 
template<unsigned int D>
double get_maximum_range (Model *m, const Array< D, ParticleIndex > &p) const
 Return an upper bound on the distance at which the score can be non-zero. More...
 
template<unsigned int D>
double get_score (Model *m, const Array< D, ParticleIndex > &pi, double distance) const
 
template<unsigned int D>
DerivativePair get_score_and_derivative (Model *m, const Array< D, ParticleIndex > &p, double distance) const
 
void show (std::ostream &out) const
 
- Public Member Functions inherited from IMP::score_functor::Score
ModelObjectsTemp get_inputs (Model *m, const ParticleIndexes &pis) const
 
template<unsigned int D>
bool get_is_trivially_zero (Model *m, const Array< D, ParticleIndex > &p, double squared_distance) const
 
template<unsigned int D>
double get_maximum_range (Model *m, const Array< D, ParticleIndex > &p) const
 
template<unsigned int D>
double get_score (Model *m, const Array< D, ParticleIndex > &p, double distance) const
 Return the score at the passed feature size (eg distance). More...
 
template<unsigned int D>
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). More...
 
void show (std::ostream &) const
 

Member Function Documentation

template<class BaseDistanceScore0 , class BaseDistanceScore1 >
template<unsigned int D>
double IMP::score_functor::AddScores< BaseDistanceScore0, BaseDistanceScore1 >::get_maximum_range ( Model m,
const Array< D, ParticleIndex > &  p 
) const

Return an upper bound on the distance at which the score can be non-zero.

Definition at line 49 of file AddScores.h.


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