10 #ifndef IMPMULTI_STATE_SAXS_MULTI_STATE_MODEL_SCORE_H
11 #define IMPMULTI_STATE_SAXS_MULTI_STATE_MODEL_SCORE_H
22 IMPMULTISTATE_BEGIN_NAMESPACE
26 public MultiStateModelScore {
36 bool c1_c2_approximate,
37 float min_c1 = 0.99,
float max_c1 = 1.05,
38 float min_c2 = -0.5,
float max_c2 = 2.0);
40 double get_score(
const MultiStateModel& m)
const;
42 double get_score(
const MultiStateModel& m,
43 std::vector<double>& weights)
const;
45 IMP::saxs::WeightedFitParameters get_fit_parameters(MultiStateModel& m)
const;
47 IMP::saxs::WeightedFitParameters get_fit_parameters()
const;
49 void write_fit_file(MultiStateModel& m,
50 const IMP::saxs::WeightedFitParameters& fp,
51 const std::string fit_file_name)
const;
53 std::string get_state_name(
unsigned int id)
const {
return profiles_[id]->get_name(); }
55 std::string get_dataset_name()
const {
return exp_profile_->get_name(); }
57 float get_average_c1()
const {
return average_c1_; }
58 float get_average_c2()
const {
return average_c2_; }
60 void set_average_c1_c2(
const std::vector<IMP::saxs::WeightedFitParameters>& fps);
81 float min_c1_, max_c1_, min_c2_, max_c2_;
82 float average_c1_, average_c2_;
83 bool c1_c2_approximate_;
86 IMPMULTISTATE_END_NAMESPACE
Fitting of multiple profiles to the experimental one. The weights of the profiles are computed analyt...
base class for MultiStateModel
A shared base class to help in debugging and things.
A class for profile storing and computation.