5 #ifndef CORE_FITRESULT_HPP_ 6 #define CORE_FITRESULT_HPP_ 11 #include <boost/serialization/vector.hpp> 33 void write(std::string filename)
const;
36 friend class boost::serialization::access;
37 template <
class archive>
38 void serialize(archive &ar,
const unsigned int version) {
39 ar &BOOST_SERIALIZATION_NVP(InitialParameters);
40 ar &BOOST_SERIALIZATION_NVP(FinalParameters);
41 ar &BOOST_SERIALIZATION_NVP(NumFreeParameters);
42 ar &BOOST_SERIALIZATION_NVP(IsValid);
43 ar &BOOST_SERIALIZATION_NVP(InitialEstimatorValue);
44 ar &BOOST_SERIALIZATION_NVP(FinalEstimatorValue);
45 auto x = FitDuration.count();
46 ar &boost::serialization::make_nvp(
"FitDurationInSeconds", x);
47 FitDuration = std::chrono::seconds(x);
48 ar &BOOST_SERIALIZATION_NVP(CovarianceMatrix);
unsigned int NumFreeParameters
std::vector< std::vector< double > > CovarianceMatrix
friend std::ostream & operator<<(std::ostream &os, const FitResult &Result)
void serialize(archive &ar, const unsigned int version)
void initializeWithFitResult(ComPWA::Intensity &Intens, ComPWA::FitResult Result)
std::vector< FitParameter< double > > FitParameterList
std::chrono::seconds FitDuration
double InitialEstimatorValue
double FinalEstimatorValue
Data structure which resembles a general fit result.
FitParameterList FinalParameters
FitParameterList InitialParameters
void write(std::string filename) const
FitResult load(std::string filename)
std::string makeFitParameterString(ComPWA::FitParameter< double > p)
Interface template for a general Function of the form OutputType Function(InputTypes) The concept clo...