IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
IMP::score_functor::PointToSphereDistance< BaseDistanceScore > Class Template Reference

#include <IMP/score_functor/PointToSphereDistance.h>

Inheritance diagram for IMP::score_functor::PointToSphereDistance< BaseDistanceScore >:

Detailed Description

template<class BaseDistanceScore>
class IMP::score_functor::PointToSphereDistance< BaseDistanceScore >

Transform the center distance to the sphere distance where only the second particle is treated as a sphere and pass it off to BaseDistanceScore.

Note
The second particle is assumed to be the sphere.
See also
SphereDistance

Definition at line 27 of file PointToSphereDistance.h.

Public Member Functions

 PointToSphereDistance (BaseDistanceScore base)
bool get_is_trivially_zero (Model *m, const ParticleIndexPair &pi, double squared_distance) const
double get_maximum_range (Model *m, const ParticleIndexPair &pi) const
double get_score (Model *m, const ParticleIndexPair &pi, double distance) const
DerivativePair get_score_and_derivative (Model *m, const ParticleIndexPair &pi, double distance) const

Constructor & Destructor Documentation

◆ PointToSphereDistance()

template<class BaseDistanceScore>
IMP::score_functor::PointToSphereDistance< BaseDistanceScore >::PointToSphereDistance ( BaseDistanceScore base)

Definition at line 34 of file PointToSphereDistance.h.

Member Function Documentation

◆ get_is_trivially_zero()

template<class BaseDistanceScore>
bool IMP::score_functor::PointToSphereDistance< BaseDistanceScore >::get_is_trivially_zero ( Model * m,
const ParticleIndexPair & pi,
double squared_distance ) const

Definition at line 49 of file PointToSphereDistance.h.

◆ get_maximum_range()

template<class BaseDistanceScore>
double IMP::score_functor::PointToSphereDistance< BaseDistanceScore >::get_maximum_range ( Model * m,
const ParticleIndexPair & pi ) const

Definition at line 45 of file PointToSphereDistance.h.

◆ get_score()

template<class BaseDistanceScore>
double IMP::score_functor::PointToSphereDistance< BaseDistanceScore >::get_score ( Model * m,
const ParticleIndexPair & pi,
double distance ) const

Definition at line 35 of file PointToSphereDistance.h.

◆ get_score_and_derivative()

template<class BaseDistanceScore>
DerivativePair IMP::score_functor::PointToSphereDistance< BaseDistanceScore >::get_score_and_derivative ( Model * m,
const ParticleIndexPair & pi,
double distance ) const

Definition at line 39 of file PointToSphereDistance.h.


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