10 #ifndef ROL_PROBABILITYFACTORY_HPP
11 #define ROL_PROBABILITYFACTORY_HPP
13 #include "ROL_ParameterList.hpp"
28 std::string retString;
31 retString =
"bPOE";
break;
33 retString =
"Smoothed POE";
break;
35 retString =
"Last Type (Dummy)";
break;
37 retString =
"INVALID EProbability";
break;
79 std::string prob = parlist.sublist(
"SOL").sublist(
"Probability").get(
"Name",
"bPOE");
83 return makePtr<BPOE<Real>>(parlist);
85 return makePtr<SmoothedPOE<Real>>(parlist);
87 ROL_TEST_FOR_EXCEPTION(
true,std::invalid_argument,
88 "Invalid probability type " << prob <<
"!");
EPolyProjAlgo & operator++(EPolyProjAlgo &type)
Ptr< RandVarFunctional< Real > > ProbabilityFactory(ParameterList &parlist)
std::string EProbabilityToString(EProbability ed)
Contains definitions of custom data types in ROL.
std::string removeStringFormat(std::string s)
EPolyProjAlgo & operator--(EPolyProjAlgo &type)
EProbability StringToEProbability(std::string s)
int isValidProbability(EProbability ed)