ROL
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
ROL::UniformSimplexGenerator< Real > Class Template Reference

#include <ROL_UniformSimplexGenerator.hpp>

+ Inheritance diagram for ROL::UniformSimplexGenerator< Real >:

Public Member Functions

 UniformSimplexGenerator (int nSamp, int dim, const Ptr< BatchManager< Real > > &bman, bool use_SA=false, bool adaptive=false, int numNewSamps=0)
 
- Public Member Functions inherited from ROL::MonteCarloGenerator< Real >
 MonteCarloGenerator (int nSamp, const std::vector< Ptr< Distribution< Real > > > &dist, const Ptr< BatchManager< Real > > &bman, bool use_SA=false, bool adaptive=false, int numNewSamps=0, int seed=123454321)
 
 MonteCarloGenerator (int nSamp, std::vector< std::vector< Real > > &bounds, const Ptr< BatchManager< Real > > &bman, bool use_SA=false, bool adaptive=false, int numNewSamps=0, int seed=123454321)
 
 MonteCarloGenerator (int nSamp, const std::vector< Real > &mean, const std::vector< Real > &std, const Ptr< BatchManager< Real > > &bman, bool use_SA=false, bool adaptive=false, int numNewSamps=0, int seed=123454321)
 
 MonteCarloGenerator (const Ptr< BatchManager< Real > > &bman, bool use_SA=false, bool adaptive=false, int numNewSamps=0, int seed=123454321)
 
void update (const Vector< Real > &x) override
 
Real computeError (std::vector< Real > &vals) override
 
Real computeError (std::vector< Ptr< Vector< Real > > > &vals, const Vector< Real > &x) override
 
void refine (void) override
 
int numGlobalSamples (void) const override
 
- Public Member Functions inherited from ROL::SampleGenerator< Real >
virtual ~SampleGenerator ()
 
 SampleGenerator (const ROL::Ptr< BatchManager< Real > > &bman)
 
 SampleGenerator (const SampleGenerator< Real > &sampler)
 
virtual int start (void)
 
virtual Real computeError (std::vector< ROL::Ptr< Vector< Real > > > &vals, const Vector< Real > &x)
 
virtual void setSamples (bool inConstructor=false)
 
virtual int numMySamples (void) const
 
virtual std::vector< Real > getMyPoint (const int i) const
 
virtual Real getMyWeight (const int i) const
 
int batchID (void) const
 
int numBatches (void) const
 
void sumAll (Real *input, Real *output, int dim) const
 
void sumAll (Vector< Real > &input, Vector< Real > &output) const
 
void broadcast (Real *input, int cnt, int root) const
 
void barrier (void) const
 
const ROL::Ptr< BatchManager< Real > > getBatchManager (void) const
 
void print (const std::string &filename="samples", const int prec=12) const
 

Protected Member Functions

std::vector< std::vector< Real > > sample (int nSamp, bool store=true, bool refine=false)
 
- Protected Member Functions inherited from ROL::SampleGenerator< Real >
void setPoints (std::vector< std::vector< Real > > &p)
 
void setWeights (std::vector< Real > &w)
 

Private Attributes

const int dim_
 

Additional Inherited Members

- Protected Attributes inherited from ROL::MonteCarloGenerator< Real >
int nSamp_
 
const bool use_SA_
 
const bool adaptive_
 
const int numNewSamps_
 
const int seed_
 

Detailed Description

template<typename Real>
class ROL::UniformSimplexGenerator< Real >

Definition at line 18 of file ROL_UniformSimplexGenerator.hpp.

Constructor & Destructor Documentation

◆ UniformSimplexGenerator()

template<typename Real >
ROL::UniformSimplexGenerator< Real >::UniformSimplexGenerator ( int  nSamp,
int  dim,
const Ptr< BatchManager< Real > > &  bman,
bool  use_SA = false,
bool  adaptive = false,
int  numNewSamps = 0 
)

Member Function Documentation

◆ sample()

template<typename Real >
std::vector< std::vector< Real > > ROL::UniformSimplexGenerator< Real >::sample ( int  nSamp,
bool  store = true,
bool  refine = false 
)
protectedvirtual

Member Data Documentation

◆ dim_

template<typename Real >
const int ROL::UniformSimplexGenerator< Real >::dim_
private

Definition at line 20 of file ROL_UniformSimplexGenerator.hpp.


The documentation for this class was generated from the following files: