Dakota  Version 6.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
SharedPecosApproxData Class Reference

Derived approximation class for global basis polynomials. More...

Inheritance diagram for SharedPecosApproxData:
SharedApproxData

Public Member Functions

 SharedPecosApproxData ()
 default constructor
 
 SharedPecosApproxData (const String &approx_type, const UShortArray &approx_order, size_t num_vars, short data_order, short output_level)
 alternate constructor
 
 SharedPecosApproxData (ProblemDescDB &problem_db, size_t num_vars)
 standard ProblemDescDB-driven constructor
 
 ~SharedPecosApproxData ()
 destructor
 
void random_variables_key (const Pecos::BitArray &random_vars_key)
 set pecosBasisApprox.randomVarsKey
 
void integration_iterator (const Iterator &iterator)
 set pecosBasisApprox.driverRep
 
void construct_basis (const Pecos::ShortArray &u_types, const Pecos::AleatoryDistParams &adp)
 invoke Pecos::SharedOrthogPolyApproxData::construct_basis()
 
void polynomial_basis (const std::vector< Pecos::BasisPolynomial > &poly_basis)
 set Pecos::SharedOrthogPolyApproxData::polynomialBasis
 
const std::vector
< Pecos::BasisPolynomial > & 
polynomial_basis () const
 get Pecos::SharedOrthogPolyApproxData::polynomialBasis
 
std::vector
< Pecos::BasisPolynomial > & 
polynomial_basis ()
 get Pecos::SharedOrthogPolyApproxData::polynomialBasis
 
void allocate (const UShort2DArray &mi)
 set Pecos::SharedOrthogPolyApproxData::multiIndex and allocate associated arrays
 
const UShort2DArray & multi_index () const
 get Pecos::SharedOrthogPolyApproxData::multiIndex
 
const Pecos::BitArrayULongMap & sobol_index_map () const
 return Pecos::SharedPolyApproxData::sobolIndexMap
 
void coefficients_norms_flag (bool flag)
 invoke Pecos::SharedOrthogPolyApproxData::coefficients_norms_flag()
 
size_t expansion_terms () const
 return Pecos::SharedOrthogPolyApproxData::expansion_terms()
 
const UShortArray & expansion_order () const
 return Pecos::SharedOrthogPolyApproxData::expansion_order()
 
void expansion_order (const UShortArray &order)
 invokes Pecos::SharedOrthogPolyApproxData::expansion_order(UShortArray&)
 
void increment_order ()
 invokes Pecos::SharedOrthogPolyApproxData::increment_order()
 
void configuration_options (const Pecos::ExpansionConfigOptions &ec_options)
 set the expansion configuration options within Pecos::SharedPolyApproxData
 
void configuration_options (const Pecos::BasisConfigOptions &bc_options)
 set the basis configuration options within Pecos::SharedPolyApproxData
 
void configuration_options (const Pecos::RegressionConfigOptions &rc_options)
 set the regression configuration options within Pecos::SharedRegressOrthogPolyApproxData
 
- Public Member Functions inherited from SharedApproxData
 SharedApproxData ()
 default constructor More...
 
 SharedApproxData (ProblemDescDB &problem_db, size_t num_vars)
 standard constructor for envelope More...
 
 SharedApproxData (const String &approx_type, const UShortArray &approx_order, size_t num_vars, short data_order, short output_level)
 alternate constructor for envelope More...
 
 SharedApproxData (const SharedApproxData &approx)
 copy constructor More...
 
virtual ~SharedApproxData ()
 destructor More...
 
SharedApproxData operator= (const SharedApproxData &approx)
 assignment operator More...
 
void set_bounds (const RealVector &c_l_bnds, const RealVector &c_u_bnds, const IntVector &di_l_bnds, const IntVector &di_u_bnds, const RealVector &dr_l_bnds, const RealVector &dr_u_bnds)
 set approximation lower and upper bounds (currently only used by graphics)
 
SharedApproxDatadata_rep () const
 returns dataRep for access to derived class member functions that are not mapped to the top SharedApproxData level
 

Protected Member Functions

void build ()
 builds the shared approximation data from scratch
 
void rebuild ()
 rebuilds the shared approximation data incrementally
 
void pop (bool save_surr_data)
 back out the previous increment to the shared approximation data
 
bool push_available ()
 queries availability of pushing data associated with a trial set
 
size_t retrieval_index ()
 return index of trial set within popped bookkeeping sets
 
void pre_push ()
 push a previous state of the shared approximation data
 
void post_push ()
 clean up popped bookkeeping following push
 
size_t finalization_index (size_t i)
 return index of i-th trailing trial set within restorable bookkeeping sets
 
void pre_finalize ()
 finalize the shared approximation data following a set of increments
 
void post_finalize ()
 clean up popped bookkeeping following aggregation
 
void store (size_t index=_NPOS)
 store the current state of the shared approximation data for later combination (defaults to push_back)
 
void restore (size_t index=_NPOS)
 restore a previous state of the shared approximation data (defaults to pop_back from stored)
 
void remove_stored (size_t index=_NPOS)
 remove an instance of stored approximation data prior to combination (defaults to pop_back)
 
size_t pre_combine (short corr_type)
 aggregate the shared approximation data from current and stored states
 
void post_combine (short corr_type)
 clean up stored data sets after aggregation
 
- Protected Member Functions inherited from SharedApproxData
 SharedApproxData (BaseConstructor, ProblemDescDB &problem_db, size_t num_vars)
 constructor initializes the base class part of letter classes (BaseConstructor overloading avoids infinite recursion in the derived class constructors - Coplien, p. 139) More...
 
 SharedApproxData (NoDBBaseConstructor, const String &approx_type, size_t num_vars, short data_order, short output_level)
 constructor initializes the base class part of letter classes (BaseConstructor overloading avoids infinite recursion in the derived class constructors - Coplien, p. 139) More...
 

Private Member Functions

Pecos::SharedBasisApproxData & pecos_shared_data ()
 return pecosSharedData
 
void approx_type_to_basis_type (const String &approx_type, short &basis_type)
 utility to convert Dakota type string to Pecos type enumeration
 

Private Attributes

Pecos::SharedBasisApproxData pecosSharedData
 the Pecos shared approximation data
 
Pecos::SharedPolyApproxData * pecosSharedDataRep
 convenience pointer to derived letter within pecosSharedData
 

Friends

class PecosApproximation
 

Additional Inherited Members

- Protected Attributes inherited from SharedApproxData
size_t numVars
 number of variables in the approximation
 
String approxType
 approximation type identifier
 
short buildDataOrder
 order of the data used for surrogate construction, in ActiveSet request vector 3-bit format. More...
 
short outputLevel
 output verbosity level: {SILENT,QUIET,NORMAL,VERBOSE,DEBUG}_OUTPUT
 
String modelExportPrefix
 Prefix for model export files.
 
unsigned short modelExportFormat
 Bitmapped format reques for exported models.
 
RealVector approxCLowerBnds
 approximation continuous lower bounds (used by 3D graphics and Surfpack KrigingModel)
 
RealVector approxCUpperBnds
 approximation continuous upper bounds (used by 3D graphics and Surfpack KrigingModel)
 
IntVector approxDILowerBnds
 approximation continuous lower bounds
 
IntVector approxDIUpperBnds
 approximation continuous upper bounds
 
RealVector approxDRLowerBnds
 approximation continuous lower bounds
 
RealVector approxDRUpperBnds
 approximation continuous upper bounds
 

Detailed Description

Derived approximation class for global basis polynomials.

The SharedPecosApproxData class provides a global approximation based on basis polynomials. This includes orthogonal polynomials used for polynomial chaos expansions and interpolation polynomials used for stochastic collocation.


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