IMP  2.4.0
The Integrative Modeling Platform
MultiStateModelScore.h
Go to the documentation of this file.
1 /**
2  * \file IMP/multi_state/MultiStateModelScore.h
3  * base class for MultiStateModel scoring classes
4  * \brief
5  *
6  * \authors Dina Schneidman
7  * Copyright 2007-2015 IMP Inventors. All rights reserved.
8  *
9  */
10 
11 #ifndef IMPMULTI_STATE_MULTI_STATE_MODEL_SCORE_H
12 #define IMPMULTI_STATE_MULTI_STATE_MODEL_SCORE_H
13 
14 #include <IMP/multi_state/multi_state_config.h>
17 
18 IMPMULTISTATE_BEGIN_NAMESPACE
19 
20 class MultiStateModelScore {
21 public:
22  // multi_state_model score
23  virtual double get_score(const MultiStateModel& e) const = 0;
24 
25  // multi_state_model score and weights
26  virtual double get_score(const MultiStateModel& e,
27  std::vector<double>& weights) const = 0;
28 
29  // multi_state_model score, weights and other fitting params
30  virtual IMP::saxs::WeightedFitParameters
31  get_fit_parameters(MultiStateModel& e) const = 0;
32 
33  // get score and weights
34  virtual IMP::saxs::WeightedFitParameters get_fit_parameters() const = 0;
35 
36  // write fit file
37  virtual void write_fit_file(MultiStateModel& e,
38  const IMP::saxs::WeightedFitParameters& fp,
39  const std::string fit_file_name) const = 0;
40 
41  // get name
42  virtual std::string get_state_name(unsigned int id) const = 0;
43 
44  // get data name
45  virtual std::string get_dataset_name() const = 0;
46 };
47 
48 IMPMULTISTATE_END_NAMESPACE
49 
50 #endif /* IMPMULTI_STATE_MULTI_STATE_MODEL_SCORE_H */
Copyright 2007-2015 IMP Inventors. All rights reserved.
base class for MultiStateModel