IMP  2.3.0
The Integrative Modeling Platform
MinimumTripletScore.h
Go to the documentation of this file.
1 /**
2  * \file IMP/container/MinimumTripletScore.h
3  * \brief Define TripletScore.
4  *
5  * This file is generated by a script (tools/make-container).
6  * Do not edit directly.
7  *
8  * Copyright 2007-2014 IMP Inventors. All rights reserved.
9  */
10 
11 #ifndef IMPCONTAINER_MINIMUM_TRIPLET_SCORE_H
12 #define IMPCONTAINER_MINIMUM_TRIPLET_SCORE_H
13 
14 #include <IMP/container/container_config.h>
15 #include <IMP/TripletScore.h>
16 #include <IMP/triplet_macros.h>
17 
18 IMPCONTAINER_BEGIN_NAMESPACE
19 
20 //! Evaluate the min or max n particle_triplet scores of the passed set
21 /** Each of the set of TripletScores is evaluated and the sum of the
22  minimum n is returned.
23 */
24 class IMPCONTAINEREXPORT MinimumTripletScore : public TripletScore {
25  TripletScores scores_;
26  unsigned int n_;
27 
28  public:
29  MinimumTripletScore(const TripletScoresTemp &scores, unsigned int n = 1,
30  std::string name = "TripletScore %1%");
31  virtual double evaluate_index(kernel::Model *m, const kernel::ParticleIndexTriplet& vt,
37 
39  const kernel::ParticleIndexTriplet& vt) const
41 };
42 
44 
45 IMPCONTAINER_END_NAMESPACE
46 
47 #endif /* IMPCONTAINER_MINIMUM_TRIPLET_SCORE_H */
Class for adding derivatives from restraints to the model.
Import IMP/kernel/triplet_macros.h in the namespace.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition: object_macros.h:25
virtual double evaluate_index(kernel::Model *m, const kernel::ParticleIndexTriplet &vt, DerivativeAccumulator *da) const
Compute the score and the derivative if needed.
IMP::base::Vector< IMP::base::Pointer< Restraint > > Restraints
Evaluate the min or max n particle_triplet scores of the passed set.
A class to store an fixed array of same-typed values.
Definition: Array.h:33
virtual ModelObjectsTemp do_get_inputs(kernel::Model *m, const ParticleIndexes &pis) const
virtual Restraints do_create_current_decomposition(kernel::Model *m, const kernel::ParticleIndexTriplet &vt) const
Import IMP/kernel/TripletScore.h in the namespace.
#define IMP_TRIPLET_SCORE_METHODS(Name)
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing sets of objects.
Definition: object_macros.h:52
IMP::base::Vector< IMP::base::Pointer< TripletScore > > TripletScores
IMP::base::Vector< IMP::base::WeakPointer< TripletScore > > TripletScoresTemp
Abstract class for scoring object(s) of type ParticleTriplet.
#define IMP_OVERRIDE
Cause a compile error if this method does not override a parent method.
Class for storing model, its restraints, constraints, and particles.
Definition: kernel/Model.h:73