Commit 185349ef authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

added multilevel errors and errors

parent e8586906
#ifndef ERRORS_HPP
#define ERRORS_HPP
#include "Exponents.hpp"
struct Errors {
Exponents exponents;
double numeric = 0.0;
double stochastic = 0.0;
double total = 0.0;
void Estimate(const MonteCarloMap &mcMap);
void Estimate(const MultilevelData &mcMap);
double numeric = 0.0;
double EstimateNumeric(const MultilevelData &data);
double stochastic = 0.0;
double EstimateNumeric(const MeanMap& avgs);
double total = 0.0;
double EstimateStochastic(const MultilevelData &data);
double EstimateNumeric(const Mean &mean) {
return mean.Y; // todo
}
double EstimateStochastic(const SampleCounterMap &ctrs, const SVarMap &vars);
double EstimateStochastic(const SampleCounter &ctr, const SVar &sVar) {
return sVar.Q / double(ctr.M);
}
};
#endif //ERRORS_HPP
#ifndef MULTILEVELERRORS_HPP
#define MULTILEVELERRORS_HPP
#include "Exponents.hpp"
#include "Errors.hpp"
struct MultilevelErrors : public Errors {
Exponents exponents;
void Estimate(const EstimatorMap &mcMap);
void Estimate(const MultilevelData &mcMap);
double EstimateNumeric(const MultilevelData &data);
double EstimateNumeric(const MeanMap &means);
double EstimateStochastic(const MultilevelData &data);
double EstimateStochastic(const SampleCounterMap &ctrs, const SVarMap &sVars);
};
#endif //MULTILEVELERRORS_HPP
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment