44#ifndef ROL_DISTRIBUTIONFACTORY_HPP
45#define ROL_DISTRIBUTIONFACTORY_HPP
47#include "ROL_ParameterList.hpp"
91 std::string retString;
111 default: retString =
"INVALID EDistribution";
break;
169 ROL::ParameterList sollist;
170 if ( parlist.isSublist(
"SOL") ) {
171 dist.assign(parlist.sublist(
"SOL").sublist(
"Distribution").get(
"Name",
"Dirac"));
175 dist.assign(parlist.sublist(
"Distribution").get(
"Name",
"Dirac"));
176 sollist.sublist(
"SOL") = parlist;
197 default:
return ROL::nullPtr;
std::string removeStringFormat(std::string s)
EDistribution StringToEDistribution(std::string s)
ROL::Ptr< Distribution< Real > > DistributionFactory(ROL::ParameterList &parlist)
EPolyProjAlgo & operator--(EPolyProjAlgo &type)
@ DISTRIBUTION_EXPONENTIAL
@ DISTRIBUTION_RAISEDCOSINE
@ DISTRIBUTION_TRUNCATEDEXPONENTIAL
@ DISTRIBUTION_TRUNCATEDGAUSSIAN
@ DISTRIBUTION_KUMARASWAMY
EPolyProjAlgo & operator++(EPolyProjAlgo &type)
std::string EDistributionToString(EDistribution ed)
int isValidDistribution(EDistribution ed)