queso-0.57.1
|
This class defines the options that specify the behaviour of the Gaussian process emulator. More...
#include <GPMSAOptions.h>
Public Member Functions | |
GPMSAOptions (const BaseEnvironment &env, const char *prefix) | |
Given prefix, read the input file for parameters named "prefix"+*. More... | |
GPMSAOptions () | |
Construct with default parameters. More... | |
void | set_prefix (const char *prefix) |
Set parameter option names to begin with prefix. More... | |
void | set_defaults () |
Set default values for parameter options. More... | |
void | parse (const BaseEnvironment &env, const char *prefix) |
Given prefix, read the input file for parameters named "prefix"+*. More... | |
virtual | ~GPMSAOptions () |
Destructor. More... | |
void | print (std::ostream &os) const |
Prints this to os . More... | |
void | set_autoscale_minmax_uncertain_parameter (unsigned int i) |
Do automatic normalization, using minimum and maximum values in. More... | |
void | set_autoscale_minmax_scenario_parameter (unsigned int i) |
Do automatic normalization, using minimum and maximum values in. More... | |
void | set_autoscale_minmax () |
Do automatic normalization, using minimum and maximum values in. More... | |
void | set_autoscale_meanvar_uncertain_parameter (unsigned int i) |
Do automatic normalization, using mean and variance of the. More... | |
void | set_autoscale_meanvar_scenario_parameter (unsigned int i) |
Do automatic normalization, using mean and variance of the. More... | |
void | set_autoscale_meanvar () |
Do automatic normalization, using mean and variance of the. More... | |
void | set_uncertain_parameter_scaling (unsigned int i, double range_min, double range_max) |
Set a value, for uncertain parameter i in simulation inputs, of. More... | |
void | set_scenario_parameter_scaling (unsigned int i, double range_min, double range_max) |
Set a value, for scenario parameter i in simulation and. More... | |
void | set_output_scaling (unsigned int i, double range_min, double range_max) |
Set a value, for output value i in simulation and. More... | |
template<typename V > | |
void | set_final_scaling (const std::vector< typename SharedPtr< V >::Type > &m_simulationScenarios, const std::vector< typename SharedPtr< V >::Type > &m_simulationParameters, const std::vector< typename SharedPtr< V >::Type > &m_simulationOutputs, const std::vector< typename SharedPtr< V >::Type > &m_experimentScenarios, const std::vector< typename SharedPtr< V >::Type > &m_experimentOutputs) |
Determine the physical parameter ranges (range_min, range_max) More... | |
double | normalized_scenario_parameter (unsigned int i, double physical_param) const |
Calculate a normalized value from a physical value for the. More... | |
double | normalized_uncertain_parameter (unsigned int i, double physical_param) const |
Calculate a normalized value from a physical value for the. More... | |
const BaseEnvironment & | env () const |
Returns the QUESO environment. More... | |
Public Attributes | |
std::string | m_prefix |
The prefix to look for in the input file. More... | |
std::string | m_help |
If this string is non-empty, print the options object to the output file. More... | |
int | m_maxEmulatorBasisVectors |
The maximum number of basis vectors to use for approximating. More... | |
double | m_emulatorBasisVarianceToCapture |
The minimum fraction of the variance in simulation output to. More... | |
double | m_emulatorPrecisionShape |
The shape parameter for the Gamma hyperprior for the emulator precision. More... | |
double | m_emulatorPrecisionScale |
The scale parameter for the Gamma hyperprior for the emulator precision. More... | |
bool | m_calibrateObservationalPrecision |
Whether to use an observational error precision hyperparameter. More... | |
double | m_observationalPrecisionShape |
The shape parameter for the Gamma hyperprior for the observational precision. More... | |
double | m_observationalPrecisionScale |
The scale parameter for the Gamma hyperprior for the observational precision. More... | |
double | m_emulatorCorrelationStrengthAlpha |
The alpha paramter for the Beta hyperprior for the emulator correlation strength. More... | |
double | m_emulatorCorrelationStrengthBeta |
The beta paramter for the Beta hyperprior for the emulator correlation strength. More... | |
double | m_discrepancyPrecisionShape |
The shape parameter for the Gamma hyperprior for the discrepancy precision. More... | |
double | m_discrepancyPrecisionScale |
The scale parameter for the Gamma hyperprior for the discrepancy precision. More... | |
double | m_discrepancyCorrelationStrengthAlpha |
The alpha paramter for the Beta hyperprior for the discrepancy correlation strength. More... | |
double | m_discrepancyCorrelationStrengthBeta |
The beta paramter for the Beta hyperprior for the discrepancy correlation strength. More... | |
double | m_emulatorDataPrecisionShape |
The shape parameter for the Gamma hyperprior for the emulator data precision. More... | |
double | m_emulatorDataPrecisionScale |
The scale parameter for the Gamma hyperprior for the emulator data precision. More... | |
Private Member Functions | |
void | checkOptions () |
Friends | |
std::ostream & | operator<< (std::ostream &os, const GPMSAOptions &obj) |
This class defines the options that specify the behaviour of the Gaussian process emulator.
Definition at line 45 of file GPMSAOptions.h.
QUESO::GPMSAOptions::GPMSAOptions | ( | const BaseEnvironment & | env, |
const char * | prefix | ||
) |
Given prefix, read the input file for parameters named "prefix"+*.
Definition at line 96 of file GPMSAOptions.C.
References parse(), and set_defaults().
QUESO::GPMSAOptions::GPMSAOptions | ( | ) |
Construct with default parameters.
Definition at line 105 of file GPMSAOptions.C.
References set_defaults(), and set_prefix().
|
virtual |
|
private |
Definition at line 580 of file GPMSAOptions.C.
References m_env, m_help, and QUESO::BaseEnvironment::subDisplayFile().
Referenced by parse(), and set_defaults().
const BaseEnvironment& QUESO::GPMSAOptions::env | ( | ) | const |
double QUESO::GPMSAOptions::normalized_scenario_parameter | ( | unsigned int | i, |
double | physical_param | ||
) | const |
Calculate a normalized value from a physical value for the.
Definition at line 556 of file GPMSAOptions.C.
References m_scenarioScaleMin, and m_scenarioScaleRange.
double QUESO::GPMSAOptions::normalized_uncertain_parameter | ( | unsigned int | i, |
double | physical_param | ||
) | const |
Calculate a normalized value from a physical value for the.
Definition at line 568 of file GPMSAOptions.C.
References m_uncertainScaleMin, and m_uncertainScaleRange.
void QUESO::GPMSAOptions::parse | ( | const BaseEnvironment & | env, |
const char * | prefix | ||
) |
Given prefix, read the input file for parameters named "prefix"+*.
Definition at line 172 of file GPMSAOptions.C.
References checkOptions(), env(), QUESO::BaseEnvironment::input(), m_autoscaleMeanVarAll, m_autoscaleMinMaxAll, m_calibrateObservationalPrecision, m_discrepancyCorrelationStrengthAlpha, m_discrepancyCorrelationStrengthBeta, m_discrepancyPrecisionScale, m_discrepancyPrecisionShape, m_emulatorCorrelationStrengthAlpha, m_emulatorCorrelationStrengthBeta, m_emulatorDataPrecisionScale, m_emulatorDataPrecisionShape, m_emulatorPrecisionScale, m_emulatorPrecisionShape, m_env, m_help, m_observationalPrecisionScale, m_observationalPrecisionShape, m_option_autoscaleMeanVarAll, m_option_autoscaleMinMaxAll, m_option_calibrateObservationalPrecision, m_option_discrepancyCorrelationStrengthAlpha, m_option_discrepancyCorrelationStrengthBeta, m_option_discrepancyPrecisionScale, m_option_discrepancyPrecisionShape, m_option_emulatorCorrelationStrengthAlpha, m_option_emulatorCorrelationStrengthBeta, m_option_emulatorDataPrecisionScale, m_option_emulatorDataPrecisionShape, m_option_emulatorPrecisionScale, m_option_emulatorPrecisionShape, m_option_help, m_option_observationalPrecisionScale, m_option_observationalPrecisionShape, m_parser, QUESO::BaseEnvironment::optionsInputFileName(), and set_prefix().
Referenced by GPMSAOptions().
void QUESO::GPMSAOptions::print | ( | std::ostream & | os | ) | const |
Prints this
to os
.
Definition at line 590 of file GPMSAOptions.C.
References m_autoscaleMeanVarAll, m_autoscaleMinMaxAll, m_calibrateObservationalPrecision, m_discrepancyCorrelationStrengthAlpha, m_discrepancyCorrelationStrengthBeta, m_discrepancyPrecisionScale, m_discrepancyPrecisionShape, m_emulatorCorrelationStrengthAlpha, m_emulatorCorrelationStrengthBeta, m_emulatorDataPrecisionScale, m_emulatorDataPrecisionShape, m_emulatorPrecisionScale, m_emulatorPrecisionShape, m_observationalPrecisionScale, m_observationalPrecisionShape, m_option_autoscaleMeanVarAll, m_option_autoscaleMinMaxAll, m_option_calibrateObservationalPrecision, m_option_discrepancyCorrelationStrengthAlpha, m_option_discrepancyCorrelationStrengthBeta, m_option_discrepancyPrecisionScale, m_option_discrepancyPrecisionShape, m_option_emulatorCorrelationStrengthAlpha, m_option_emulatorCorrelationStrengthBeta, m_option_emulatorDataPrecisionScale, m_option_emulatorDataPrecisionShape, m_option_emulatorPrecisionScale, m_option_emulatorPrecisionShape, m_option_observationalPrecisionScale, and m_option_observationalPrecisionShape.
Referenced by QUESO::operator<<().
void QUESO::GPMSAOptions::set_autoscale_meanvar | ( | ) |
Do automatic normalization, using mean and variance of the.
Definition at line 362 of file GPMSAOptions.C.
References m_autoscaleMeanVarAll.
void QUESO::GPMSAOptions::set_autoscale_meanvar_scenario_parameter | ( | unsigned int | i | ) |
Do automatic normalization, using mean and variance of the.
Definition at line 376 of file GPMSAOptions.C.
References m_autoscaleMeanVarScenario.
void QUESO::GPMSAOptions::set_autoscale_meanvar_uncertain_parameter | ( | unsigned int | i | ) |
Do automatic normalization, using mean and variance of the.
Definition at line 369 of file GPMSAOptions.C.
References m_autoscaleMeanVarUncertain.
void QUESO::GPMSAOptions::set_autoscale_minmax | ( | ) |
Do automatic normalization, using minimum and maximum values in.
Definition at line 341 of file GPMSAOptions.C.
References m_autoscaleMinMaxAll.
void QUESO::GPMSAOptions::set_autoscale_minmax_scenario_parameter | ( | unsigned int | i | ) |
Do automatic normalization, using minimum and maximum values in.
Definition at line 355 of file GPMSAOptions.C.
References m_autoscaleMinMaxScenario.
void QUESO::GPMSAOptions::set_autoscale_minmax_uncertain_parameter | ( | unsigned int | i | ) |
Do automatic normalization, using minimum and maximum values in.
Definition at line 348 of file GPMSAOptions.C.
References m_autoscaleMinMaxUncertain.
void QUESO::GPMSAOptions::set_defaults | ( | ) |
Set default values for parameter options.
Definition at line 145 of file GPMSAOptions.C.
References checkOptions(), m_autoscaleMeanVarAll, m_autoscaleMinMaxAll, m_calibrateObservationalPrecision, m_discrepancyCorrelationStrengthAlpha, m_discrepancyCorrelationStrengthBeta, m_discrepancyPrecisionScale, m_discrepancyPrecisionShape, m_emulatorBasisVarianceToCapture, m_emulatorCorrelationStrengthAlpha, m_emulatorCorrelationStrengthBeta, m_emulatorDataPrecisionScale, m_emulatorDataPrecisionShape, m_emulatorPrecisionScale, m_emulatorPrecisionShape, m_help, m_maxEmulatorBasisVectors, m_observationalPrecisionScale, and m_observationalPrecisionShape.
Referenced by GPMSAOptions().
template void QUESO::GPMSAOptions::set_final_scaling< GslVector > | ( | const std::vector< typename SharedPtr< V >::Type > & | m_simulationScenarios, |
const std::vector< typename SharedPtr< V >::Type > & | m_simulationParameters, | ||
const std::vector< typename SharedPtr< V >::Type > & | m_simulationOutputs, | ||
const std::vector< typename SharedPtr< V >::Type > & | m_experimentScenarios, | ||
const std::vector< typename SharedPtr< V >::Type > & | m_experimentOutputs | ||
) |
Determine the physical parameter ranges (range_min, range_max)
Definition at line 415 of file GPMSAOptions.C.
void QUESO::GPMSAOptions::set_output_scaling | ( | unsigned int | i, |
double | range_min, | ||
double | range_max | ||
) |
Set a value, for output value i in simulation and.
void QUESO::GPMSAOptions::set_prefix | ( | const char * | prefix | ) |
Set parameter option names to begin with prefix.
Definition at line 118 of file GPMSAOptions.C.
References m_option_autoscaleMeanVarAll, m_option_autoscaleMinMaxAll, m_option_calibrateObservationalPrecision, m_option_discrepancyCorrelationStrengthAlpha, m_option_discrepancyCorrelationStrengthBeta, m_option_discrepancyPrecisionScale, m_option_discrepancyPrecisionShape, m_option_emulatorBasisVarianceToCapture, m_option_emulatorCorrelationStrengthAlpha, m_option_emulatorCorrelationStrengthBeta, m_option_emulatorDataPrecisionScale, m_option_emulatorDataPrecisionShape, m_option_emulatorPrecisionScale, m_option_emulatorPrecisionShape, m_option_help, m_option_maxEmulatorBasisVectors, m_option_observationalPrecisionScale, m_option_observationalPrecisionShape, and m_prefix.
Referenced by GPMSAOptions(), and parse().
void QUESO::GPMSAOptions::set_scenario_parameter_scaling | ( | unsigned int | i, |
double | range_min, | ||
double | range_max | ||
) |
Set a value, for scenario parameter i in simulation and.
Definition at line 398 of file GPMSAOptions.C.
References m_scenarioScaleMin, and m_scenarioScaleRange.
void QUESO::GPMSAOptions::set_uncertain_parameter_scaling | ( | unsigned int | i, |
double | range_min, | ||
double | range_max | ||
) |
Set a value, for uncertain parameter i in simulation inputs, of.
Definition at line 383 of file GPMSAOptions.C.
References m_uncertainScaleMin, and m_uncertainScaleRange.
|
friend |
Definition at line 611 of file GPMSAOptions.C.
|
private |
Definition at line 245 of file GPMSAOptions.h.
Referenced by parse(), print(), set_autoscale_meanvar(), and set_defaults().
|
private |
Definition at line 255 of file GPMSAOptions.h.
Referenced by set_autoscale_meanvar_scenario_parameter().
|
private |
Definition at line 250 of file GPMSAOptions.h.
Referenced by set_autoscale_meanvar_uncertain_parameter().
|
private |
Definition at line 244 of file GPMSAOptions.h.
Referenced by parse(), print(), set_autoscale_minmax(), and set_defaults().
|
private |
Definition at line 254 of file GPMSAOptions.h.
Referenced by set_autoscale_minmax_scenario_parameter().
|
private |
Definition at line 249 of file GPMSAOptions.h.
Referenced by set_autoscale_minmax_uncertain_parameter().
bool QUESO::GPMSAOptions::m_calibrateObservationalPrecision |
Whether to use an observational error precision hyperparameter.
Definition at line 198 of file GPMSAOptions.h.
Referenced by parse(), print(), and set_defaults().
double QUESO::GPMSAOptions::m_discrepancyCorrelationStrengthAlpha |
The alpha paramter for the Beta hyperprior for the discrepancy correlation strength.
Definition at line 220 of file GPMSAOptions.h.
Referenced by parse(), print(), and set_defaults().
double QUESO::GPMSAOptions::m_discrepancyCorrelationStrengthBeta |
The beta paramter for the Beta hyperprior for the discrepancy correlation strength.
Definition at line 223 of file GPMSAOptions.h.
Referenced by parse(), print(), and set_defaults().
double QUESO::GPMSAOptions::m_discrepancyPrecisionScale |
The scale parameter for the Gamma hyperprior for the discrepancy precision.
Definition at line 217 of file GPMSAOptions.h.
Referenced by parse(), print(), and set_defaults().
double QUESO::GPMSAOptions::m_discrepancyPrecisionShape |
The shape parameter for the Gamma hyperprior for the discrepancy precision.
Definition at line 214 of file GPMSAOptions.h.
Referenced by parse(), print(), and set_defaults().
double QUESO::GPMSAOptions::m_emulatorBasisVarianceToCapture |
The minimum fraction of the variance in simulation output to.
Definition at line 88 of file GPMSAOptions.h.
Referenced by set_defaults().
double QUESO::GPMSAOptions::m_emulatorCorrelationStrengthAlpha |
The alpha paramter for the Beta hyperprior for the emulator correlation strength.
Definition at line 208 of file GPMSAOptions.h.
Referenced by parse(), print(), and set_defaults().
double QUESO::GPMSAOptions::m_emulatorCorrelationStrengthBeta |
The beta paramter for the Beta hyperprior for the emulator correlation strength.
Definition at line 211 of file GPMSAOptions.h.
Referenced by parse(), print(), and set_defaults().
double QUESO::GPMSAOptions::m_emulatorDataPrecisionScale |
The scale parameter for the Gamma hyperprior for the emulator data precision.
Definition at line 232 of file GPMSAOptions.h.
Referenced by parse(), print(), and set_defaults().
double QUESO::GPMSAOptions::m_emulatorDataPrecisionShape |
The shape parameter for the Gamma hyperprior for the emulator data precision.
Definition at line 229 of file GPMSAOptions.h.
Referenced by parse(), print(), and set_defaults().
double QUESO::GPMSAOptions::m_emulatorPrecisionScale |
The scale parameter for the Gamma hyperprior for the emulator precision.
Definition at line 192 of file GPMSAOptions.h.
Referenced by parse(), print(), and set_defaults().
double QUESO::GPMSAOptions::m_emulatorPrecisionShape |
The shape parameter for the Gamma hyperprior for the emulator precision.
Definition at line 189 of file GPMSAOptions.h.
Referenced by parse(), print(), and set_defaults().
|
private |
Definition at line 237 of file GPMSAOptions.h.
Referenced by checkOptions(), and parse().
std::string QUESO::GPMSAOptions::m_help |
If this string is non-empty, print the options object to the output file.
Definition at line 73 of file GPMSAOptions.h.
Referenced by checkOptions(), parse(), and set_defaults().
int QUESO::GPMSAOptions::m_maxEmulatorBasisVectors |
The maximum number of basis vectors to use for approximating.
Definition at line 80 of file GPMSAOptions.h.
Referenced by QUESO::GPMSAEmulator< V, M >::GPMSAEmulator(), and set_defaults().
double QUESO::GPMSAOptions::m_observationalPrecisionScale |
The scale parameter for the Gamma hyperprior for the observational precision.
Definition at line 204 of file GPMSAOptions.h.
Referenced by parse(), print(), and set_defaults().
double QUESO::GPMSAOptions::m_observationalPrecisionShape |
The shape parameter for the Gamma hyperprior for the observational precision.
Definition at line 201 of file GPMSAOptions.h.
Referenced by parse(), print(), and set_defaults().
|
private |
Definition at line 293 of file GPMSAOptions.h.
Referenced by parse(), print(), and set_prefix().
|
private |
Definition at line 292 of file GPMSAOptions.h.
Referenced by parse(), print(), and set_prefix().
|
private |
Definition at line 280 of file GPMSAOptions.h.
Referenced by parse(), print(), and set_prefix().
|
private |
Definition at line 287 of file GPMSAOptions.h.
Referenced by parse(), print(), and set_prefix().
|
private |
Definition at line 288 of file GPMSAOptions.h.
Referenced by parse(), print(), and set_prefix().
|
private |
Definition at line 286 of file GPMSAOptions.h.
Referenced by parse(), print(), and set_prefix().
|
private |
Definition at line 285 of file GPMSAOptions.h.
Referenced by parse(), print(), and set_prefix().
|
private |
Definition at line 277 of file GPMSAOptions.h.
Referenced by set_prefix().
|
private |
Definition at line 283 of file GPMSAOptions.h.
Referenced by parse(), print(), and set_prefix().
|
private |
Definition at line 284 of file GPMSAOptions.h.
Referenced by parse(), print(), and set_prefix().
|
private |
Definition at line 290 of file GPMSAOptions.h.
Referenced by parse(), print(), and set_prefix().
|
private |
Definition at line 289 of file GPMSAOptions.h.
Referenced by parse(), print(), and set_prefix().
|
private |
Definition at line 279 of file GPMSAOptions.h.
Referenced by parse(), print(), and set_prefix().
|
private |
Definition at line 278 of file GPMSAOptions.h.
Referenced by parse(), print(), and set_prefix().
|
private |
Definition at line 275 of file GPMSAOptions.h.
Referenced by parse(), and set_prefix().
|
private |
Definition at line 276 of file GPMSAOptions.h.
Referenced by set_prefix().
|
private |
Definition at line 282 of file GPMSAOptions.h.
Referenced by parse(), print(), and set_prefix().
|
private |
Definition at line 281 of file GPMSAOptions.h.
Referenced by parse(), print(), and set_prefix().
|
private |
Definition at line 240 of file GPMSAOptions.h.
Referenced by QUESO::operator<<(), and parse().
std::string QUESO::GPMSAOptions::m_prefix |
The prefix to look for in the input file.
Definition at line 70 of file GPMSAOptions.h.
Referenced by set_prefix().
|
private |
Definition at line 268 of file GPMSAOptions.h.
Referenced by normalized_scenario_parameter(), and set_scenario_parameter_scaling().
|
private |
Definition at line 273 of file GPMSAOptions.h.
Referenced by normalized_scenario_parameter(), and set_scenario_parameter_scaling().
|
private |
Definition at line 259 of file GPMSAOptions.h.
Referenced by normalized_uncertain_parameter(), and set_uncertain_parameter_scaling().
|
private |
Definition at line 264 of file GPMSAOptions.h.
Referenced by normalized_uncertain_parameter(), and set_uncertain_parameter_scaling().