OpenStudioCore:runmanager/lib
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
openstudio::runmanager::ErrorEstimation Class Reference

#include <ErrorEstimation.hpp>

Public Member Functions

openstudio::runmanager::FuelUses add (const SqlFile &t_sql, const std::string &t_sourceName, const std::vector< double > &t_variables)
 adds the data of an SqlFile simulation result into the ErrorEstimation and returns the error corrected values More...
 
openstudio::runmanager::FuelUses add (const isomodel::UserModel &t_userModel, const isomodel::ISOResults &t_results, const std::string &t_sourceName, const std::vector< double > &t_variables)
 Adds the data of an ISOResults from an ISO simulation into the ErrorEstimation and returns the error corrected values;. More...
 
openstudio::runmanager::FuelUses add (FuelUses t_origUses, const std::string &t_sourceName, const std::vector< double > &t_variables)
 
openstudio::runmanager::FuelUses approximate (const std::vector< double > &t_variables) const
 Returns an estimated FuelUsage for the given variable at the given value. More...
 
 ErrorEstimation (const size_t t_numVariables)
 Constructs an ErrorEstimation object. More...
 
double getConfidence (const std::string &t_sourceName) const
 
void setConfidence (const std::string &t_sourceName, double t_confidence)
 Sets the confidence level for a given data source. More...
 

Constructor & Destructor Documentation

openstudio::runmanager::ErrorEstimation::ErrorEstimation ( const size_t  t_numVariables)

Constructs an ErrorEstimation object.

Member Function Documentation

openstudio::runmanager::FuelUses openstudio::runmanager::ErrorEstimation::add ( const SqlFile &  t_sql,
const std::string &  t_sourceName,
const std::vector< double > &  t_variables 
)

adds the data of an SqlFile simulation result into the ErrorEstimation and returns the error corrected values

Parameters
[in]t_sqlThe SqlFile to pull the year end summary data from
[in]t_sourceNameThe name of the simulation source this data is from, registered with addSource
[in]t_variablesThe name of the variable that this data is for
Returns
The error corrected values, or the input values if error correction was not possible
openstudio::runmanager::FuelUses openstudio::runmanager::ErrorEstimation::add ( const isomodel::UserModel &  t_userModel,
const isomodel::ISOResults &  t_results,
const std::string &  t_sourceName,
const std::vector< double > &  t_variables 
)

Adds the data of an ISOResults from an ISO simulation into the ErrorEstimation and returns the error corrected values;.

Parameters
[in]t_userModelThe isomodel UserModel
[in]t_resultsThe SqlFile to pull the year end summary data from
[in]t_sourceNameThe name of the simulation source this data is from, registered with addSource
[in]t_variablesThe name of the variable that this data is for
Returns
The error corrected values, or the input values if error correction was not possible
openstudio::runmanager::FuelUses openstudio::runmanager::ErrorEstimation::add ( FuelUses  t_origUses,
const std::string &  t_sourceName,
const std::vector< double > &  t_variables 
)
openstudio::runmanager::FuelUses openstudio::runmanager::ErrorEstimation::approximate ( const std::vector< double > &  t_variables) const

Returns an estimated FuelUsage for the given variable at the given value.

Parameters
[in]t_variablesThe variable to
double openstudio::runmanager::ErrorEstimation::getConfidence ( const std::string &  t_sourceName) const
Returns
the confidence for the given source name
void openstudio::runmanager::ErrorEstimation::setConfidence ( const std::string &  t_sourceName,
double  t_confidence 
)

Sets the confidence level for a given data source.