Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Mpp
MLUQ
Commits
9d99a6bf
Commit
9d99a6bf
authored
May 12, 2021
by
niklas.baumgarten
Browse files
added functionality
parent
20a69789
Changes
1
Hide whitespace changes
Inline
Side-by-side
mlmc/src/estimators/Estimator.hpp
View file @
9d99a6bf
...
...
@@ -5,6 +5,7 @@
#include "Errors.hpp"
struct
Exponents
;
class
Estimator
{
...
...
@@ -16,16 +17,17 @@ protected:
public:
WelfordAggregate
aggregate
;
Estimator
()
{
config
.
get
(
"epsilon"
,
epsilon
);
}
Estimator
()
{
config
.
get
(
"epsilon"
,
epsilon
);
}
double
TotalError
()
const
{
return
errors
.
total
;
}
double
NumericError
()
const
{
return
errors
.
numeric
;
}
virtual
double
TotalError
()
const
{
return
0.0
;
}
double
StochasticError
()
const
{
return
errors
.
stochastic
;
}
double
Epsilon
()
const
{
return
epsilon
;
}
virtual
void
Method
()
{};
virtual
std
::
string
Name
()
const
{
return
"Estimator"
;
};
...
...
@@ -35,7 +37,6 @@ public:
virtual
void
MultilevelResults
()
const
{};
virtual
void
ExponentResults
()
const
{};
};
#endif //ESTIMATOR_HPP
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment