1 #ifndef FLASHHYPOTHESIS_H 2 #define FLASHHYPOTHESIS_H 25 std::vector<float>
const& vector_error=std::vector<float>())
48 void Normalize(
float const& totalPE_target);
55 throw std::runtime_error(
"ERROR in FlashHypothesisAddition: Cannot add hypothesis of different size");
60 flashhyp._NPEs_ErrorVector[i] =
81 { SetPromptAndLateHyp(prompt,late); }
84 { _prompt_hyp=prompt; _late_hyp=late; UpdateTotalHyp(); }
86 void SetPromptHypAndPromptFraction(
const FlashHypothesis& prompt,
float frac);
104 throw std::runtime_error(
"ERROR in FlashHypothesisCollectionAddition: Cannot add hypothesis of different size");
120 void CheckFrac(
float f);
121 void UpdateTotalHyp();
void SetHypothesisVectorAndErrorVector(std::vector< float > v, std::vector< float > err=std::vector< float >(0))
FlashHypothesis(size_t s)
size_t GetVectorSize() const
void SetPromptAndLateHyp(const FlashHypothesis &prompt, const FlashHypothesis &late)
FlashHypothesisCollection()
FlashHypothesis(std::vector< float > const &vector, std::vector< float > const &vector_error=std::vector< float >())
float GetTotalPEsError() const
std::vector< float > _NPEs_ErrorVector
std::vector< float > const & GetHypothesisErrorVector() const
const FlashHypothesis & GetLateHypothesis() const
void SetHypothesisAndError(size_t i_opdet, float pe, float err=-999)
FlashHypothesisCollection operator+(const FlashHypothesisCollection &fhc)
float GetTotalPEs() const
float const & GetHypothesisError(size_t i_opdet) const
void SetHypothesisError(size_t i_opdet, float err)
FlashHypothesis _prompt_hyp
const FlashHypothesis & GetPromptHypothesis() const
void err(const char *fmt,...)
FlashHypothesis _total_hyp
float GetLateFraction() const
std::vector< float > _NPEs_Vector
FlashHypothesis operator+(const FlashHypothesis &fh)
FlashHypothesisCollection(const FlashHypothesis &prompt, const FlashHypothesis &late)
float const & GetHypothesis(size_t i_opdet) const
void Normalize(float const &totalPE_target)
void SetHypothesis(size_t i_opdet, float pe)
const FlashHypothesis & GetTotalHypothesis() const
void SetHypothesisErrorVector(std::vector< float > v)
size_t GetVectorSize() const
FlashHypothesisCollection(size_t s)
FlashHypothesis _late_hyp
std::vector< float > const & GetHypothesisVector() const
void SetHypothesisVector(std::vector< float > v)
float GetPromptFraction() const