14 #include "ROL_ParameterList.hpp"
26 Dirac(ROL::ParameterList &parlist) {
27 data_ = parlist.sublist(
"SOL").sublist(
"Distribution").sublist(
"Dirac").get(
"Location",0.);
31 return ((input==
data_) ? 1.0 : 0.0);
35 return ((input >=
data_) ? 1.0 : 0.0);
39 return ((input <
data_) ? 0.0 : input);
50 return std::pow(
data_,(Real)m);
61 void test(std::ostream &outStream = std::cout )
const {
63 std::vector<Real> X(size,4.*(Real)rand()/(Real)RAND_MAX - 2.);
64 std::vector<int> T(size,0);
Real moment(const size_t m) const
Real lowerBound(void) const
Real evaluateCDF(const Real input) const
virtual void test(std::ostream &outStream=std::cout) const
Dirac(ROL::ParameterList &parlist)
Dirac(const Real data=0.)
void test(std::ostream &outStream=std::cout) const
Real integrateCDF(const Real input) const
Real evaluatePDF(const Real input) const
Real invertCDF(const Real input) const
Real upperBound(void) const