48 #include "ROL_ParameterList.hpp"
60 Dirac(ROL::ParameterList &parlist) {
61 data_ = parlist.sublist(
"SOL").sublist(
"Distribution").sublist(
"Dirac").get(
"Location",0.);
65 return ((input==
data_) ? 1.0 : 0.0);
69 return ((input >=
data_) ? 1.0 : 0.0);
73 return ((input <
data_) ? 0.0 : input);
84 return std::pow(
data_,(Real)m);
95 void test(std::ostream &outStream = std::cout )
const {
97 std::vector<Real> X(size,4.*(Real)rand()/(Real)RAND_MAX - 2.);
98 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