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

#include <IMP/score_functor/Harmonic.h>

Inheritance diagram for IMP::score_functor::Harmonic:

Detailed Description

A harmonic score on the directed distance between a pair of particles, centered at 0.

Definition at line 22 of file score_functor/Harmonic.h.

Public Member Functions

 Harmonic (double k)
double get_k () 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 *m, const Array< D, ParticleIndex > &p, double distance) const
void set_k (double k)
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

◆ Harmonic() [1/2]

IMP::score_functor::Harmonic::Harmonic ( double k)

Definition at line 30 of file score_functor/Harmonic.h.

◆ Harmonic() [2/2]

IMP::score_functor::Harmonic::Harmonic ( )

Definition at line 31 of file score_functor/Harmonic.h.

Member Function Documentation

◆ get_k()

double IMP::score_functor::Harmonic::get_k ( ) const

Definition at line 44 of file score_functor/Harmonic.h.

◆ get_score()

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

Definition at line 33 of file score_functor/Harmonic.h.

◆ get_score_and_derivative()

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

Definition at line 39 of file score_functor/Harmonic.h.

◆ set_k()

void IMP::score_functor::Harmonic::set_k ( double k)

Definition at line 45 of file score_functor/Harmonic.h.


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