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] =
104 throw std::runtime_error(
"ERROR in FlashHypothesisCollectionAddition: Cannot add hypothesis of different size");
FlashHypothesis(size_t s)
size_t GetVectorSize() const
void SetPromptAndLateHyp(const FlashHypothesis &prompt, const FlashHypothesis &late)
FlashHypothesisCollection()
EResult err(const char *call)
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
FlashHypothesisCollection operator+(const FlashHypothesisCollection &fhc)
float GetTotalPEs() const
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
float const & GetHypothesisError(size_t i_opdet) const
void SetTotalHypAndPromptFraction(const FlashHypothesis &total, float frac)
void SetHypothesisError(size_t i_opdet, float err)
FlashHypothesis _prompt_hyp
const FlashHypothesis & GetPromptHypothesis() const
FlashHypothesis _total_hyp
float GetLateFraction() const
std::vector< float > _NPEs_Vector
FlashHypothesis operator+(const FlashHypothesis &fh)
void SetHypothesisVectorAndErrorVector(std::vector< float > v, std::vector< float > err=std::vector< float >(0))
void SetPromptHypAndPromptFraction(const FlashHypothesis &prompt, float frac)
FlashHypothesisCollection(const FlashHypothesis &prompt, const FlashHypothesis &late)
float const & GetHypothesis(size_t i_opdet) const
then echo File list $list not found else cat $list while read file do echo $file sed s
void Normalize(float const &totalPE_target)
void SetHypothesis(size_t i_opdet, float pe)
void SetHypothesisAndError(size_t i_opdet, float pe, float err=-999)
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
void Normalize(float totalPEs)