IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
IMP::score_functor::LinearLowerBound Class Reference

#include <IMP/score_functor/LinearLowerBound.h>

Inheritance diagram for IMP::score_functor::LinearLowerBound:

Detailed Description

A DistanceScore that scores with a linear function on distances below 0.

Note
a positive k results in repulsion

Definition at line 20 of file LinearLowerBound.h.

Public Member Functions

 LinearLowerBound (double k)
template<unsigned int D>
bool get_is_trivially_zero (Model *, const Array< D, ParticleIndex > &, double squared_distance) const
float get_k () const
template<unsigned int D>
double get_maximum_range (Model *, const Array< D, ParticleIndex > &) const
template<unsigned int D>
double get_score (Model *, const Array< D, ParticleIndex > &, double distance) const
template<unsigned int D>
DerivativePair get_score_and_derivative (Model *, const Array< D, ParticleIndex > &, double distance) 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).
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).
void show (std::ostream &) const

Constructor & Destructor Documentation

◆ LinearLowerBound() [1/2]

IMP::score_functor::LinearLowerBound::LinearLowerBound ( double k)

Definition at line 24 of file LinearLowerBound.h.

◆ LinearLowerBound() [2/2]

IMP::score_functor::LinearLowerBound::LinearLowerBound ( )

Definition at line 25 of file LinearLowerBound.h.

Member Function Documentation

◆ get_is_trivially_zero()

template<unsigned int D>
bool IMP::score_functor::LinearLowerBound::get_is_trivially_zero ( Model * ,
const Array< D, ParticleIndex > & ,
double squared_distance ) const

Definition at line 47 of file LinearLowerBound.h.

◆ get_k()

float IMP::score_functor::LinearLowerBound::get_k ( ) const

Definition at line 53 of file LinearLowerBound.h.

◆ get_maximum_range()

template<unsigned int D>
double IMP::score_functor::LinearLowerBound::get_maximum_range ( Model * ,
const Array< D, ParticleIndex > &  ) const

Definition at line 42 of file LinearLowerBound.h.

◆ get_score()

template<unsigned int D>
double IMP::score_functor::LinearLowerBound::get_score ( Model * ,
const Array< D, ParticleIndex > & ,
double distance ) const

Definition at line 28 of file LinearLowerBound.h.

◆ get_score_and_derivative()

template<unsigned int D>
DerivativePair IMP::score_functor::LinearLowerBound::get_score_and_derivative ( Model * ,
const Array< D, ParticleIndex > & ,
double distance ) const

Definition at line 35 of file LinearLowerBound.h.


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