IMP
2.0.1
The Integrative Modeling Platform
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
core/DistancePairScore.h
Go to the documentation of this file.
1
/**
2
* \file IMP/core/DistancePairScore.h
3
* \brief A Score on the distance between a pair of particles.
4
*
5
* Copyright 2007-2013 IMP Inventors. All rights reserved.
6
*/
7
8
#ifndef IMPCORE_DISTANCE_PAIR_SCORE_H
9
#define IMPCORE_DISTANCE_PAIR_SCORE_H
10
11
#include <IMP/core/core_config.h>
12
#include <
IMP/score_functor/UnaryFunctionEvaluate.h
>
13
#include <
IMP/score_functor/Harmonic.h
>
14
#include <
IMP/score_functor/Shift.h
>
15
#include <
IMP/score_functor/distance_pair_score_macros.h
>
16
IMPCORE_BEGIN_NAMESPACE
17
18
/** Score a pair of particles based on their distance using an
19
arbitrary UnaryFunction.*/
20
IMP_FUNCTOR_DISTANCE_PAIR_SCORE(DistancePairScore,
21
score_functor::UnaryFunctionEvaluate,
22
(
UnaryFunction
*uf,
23
std::string name=
"DistancePairScore%1%"
),
24
(uf));
25
26
#ifndef IMP_DOXYGEN
27
typedef
score_functor::Shift <score_functor::Harmonic >
28
HarmonicDistanceScore;
29
#endif
30
31
/** Score a pair of particles based on their distance using a
32
Harmonic. This is faster than DistancePairScore if you
33
are using a Harmonic.*/
34
IMP_FUNCTOR_DISTANCE_PAIR_SCORE(
HarmonicDistancePairScore
,
35
HarmonicDistanceScore,
36
(
double
x0,
double
k,
37
std::string name
38
=
"HarmonicDistancePairScore%1%"
),
39
(x0,
score_functor::Harmonic
(k)));
40
IMPCORE_END_NAMESPACE
41
42
#endif
/* IMPCORE_DISTANCE_PAIR_SCORE_H */