IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
functor_linear_distance_pair_scores.h
Go to the documentation of this file.
1/**
2 * \file functor_linear_distance_pair_scores.h
3 * \brief A Score on the distance between a pair of particles.
4 *
5 * Copyright 2007-2022 IMP Inventors. All rights reserved.
6 */
7
8#ifndef IMPNPCTRANSPORT_FUNCTOR_LINEAR_DISTANCE_PAIR_SCORES_H
9#define IMPNPCTRANSPORT_FUNCTOR_LINEAR_DISTANCE_PAIR_SCORES_H
10
11#include "npctransport_config.h"
13#include <IMP/algebra/utility.h>
18
19#include <boost/array.hpp>
20
21IMPNPCTRANSPORT_BEGIN_NAMESPACE
22
23
24//! Score a pair of particles
25class FunctorLinearSoftSpherePairScore
26 : public
27//#ifndef SWIG
28 IMP::score_functor::DistancePairScore<LinearSoftSphereScore>
29//#else
30// IMP::PairScore
31//#endif
32 {
34
35 public:
36 FunctorLinearSoftSpherePairScore(double k,
37 std::string name = "LinearSSPairScore%1%")
38 : P(LinearSoftSphereScore(k), name) {}
39 //#ifdef SWIG
40 IMP_OBJECT_METHODS(FunctorLinearSoftSpherePairScore);
41 //#endif
42};
43
44
45typedef score_functor::SphereDistance<LinearInteraction> LinearInteractionScore;
46
47//! Score a pair of particles
48class FunctorLinearInteractionPairScore
49 : public
50//#ifndef SWIG
51 IMP::score_functor::DistancePairScore<LinearInteractionScore>
52//#else
53// IMP::PairScore
54//#endif
55 {
57
58 public:
59 FunctorLinearInteractionPairScore(double krep, double attr_range,
60 double kattr,
61 std::string name = "LinearSSPairScore%1%")
62 : P(LinearInteractionScore(LinearInteraction(krep, attr_range, kattr)),
63 name) {}
64 //#ifdef SWIG
65 IMP_OBJECT_METHODS(FunctorLinearInteractionPairScore);
66 //#endif
67};
68
69IMPNPCTRANSPORT_END_NAMESPACE
70
71#endif /* IMPNPCTRANSPORT_FUNCTOR_LINEAR_DISTANCE_PAIR_SCORES_H */
A Score on the distance between a pair of particles.
A Score on the distance between a pair of particles.
Functions to deal with very common math operations.
Create efficient distance-based pair scores.
Various important macros for implementing decorators.
Typedefs for the functor scores on the distance between a pair of particles.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
A Score on the distance between a pair of particles.