12 #ifndef IMPSAXS_WEIGHTED_PROFILE_FITTER_H
13 #define IMPSAXS_WEIGHTED_PROFILE_FITTER_H
18 #include "internal/Diagonal.h"
19 #include "internal/Vector.h"
21 IMPSAXS_BEGIN_NAMESPACE
43 std::vector<double>& weights= empty_weights_)
const;
51 float min_c1=0.95,
float max_c1=1.05,
52 float min_c2=-2.0,
float max_c2=4.0,
53 const std::string fit_file_name =
"")
const;
57 const WeightedFitParameters& fp,
58 const std::string fit_file_name)
const;
60 WeightedFitParameters search_fit_parameters(
62 float min_c1,
float max_c1,
float min_c2,
float max_c2,
63 float old_chi, std::vector<double>& weights)
const;
66 internal::Diagonal W_;
75 static Floats empty_weights_;
Basic chi score implementation.
a class for fitting two profiles
Copyright 2007-2013 IMP Inventors. All rights reserved.
Float compute_score(const Profile *model_profile, bool use_offset=false, const std::string fit_file_name="") const
compute fit score
double Float
Basic floating-point value (could be float, double...)
FitParameters fit_profile(Profile *partial_profile, float min_c1=0.95, float max_c1=1.05, float min_c2=-2.0, float max_c2=4.0, bool use_offset=false, const std::string fit_file_name="") const
fit experimental profile through optimization of c1 and c2 parameters