60 enum class DataHandling { Average, Last, Max, Min, Total };
69 virtual void add(RealType) = 0;
70 virtual void add(
const std::vector<RealType>&) = 0;
71 virtual void add(
const Vector3d&) = 0;
72 virtual void add(
const potVec&) = 0;
73 virtual void add(
const Mat3x3d&) = 0;
75 virtual std::type_index getType()
const = 0;
77 virtual std::size_t getCount()
const = 0;
79 virtual void writeData(
80 std::ostream& stream,
const std::string& errorMessage,
81 DataHandling dataHandling = DataHandling::Average)
const = 0;
83 virtual void writeErrorBars(
84 std::ostream& stream,
const std::string& errorMessage,
85 ErrorHandling errorHandling = ErrorHandling::CI95)
const = 0;
88 void accumulatorFunctionCallMismatch()
const {
89 snprintf(painCave.errMsg, MAX_SIM_ERROR_MSG_LENGTH,
90 "The accumulator used and the function called did not\n"
91 "\tmatch type parameters.");