14 #ifndef __INDEPENDENTPARAMETERS_H__
15 #define __INDEPENDENTPARAMETERS_H__
33 #include "../tinyxml2/tinyxml2.h"
104 const std::string&
get_name(
const size_t&)
const;
107 const std::string&
get_unit(
const size_t&)
const;
121 double get_mean(
const size_t&)
const;
151 void set(
const size_t&);
167 void set_name(
const size_t&,
const std::string&);
170 void set_unit(
const size_t&,
const std::string&);
184 void set_mean(
const size_t&,
const double&);
267 tinyxml2::XMLDocument*
to_XML(
void)
const;
268 void from_XML(
const tinyxml2::XMLDocument&);
double get_maximum(const size_t &) const
void set_means_standard_deviations(const Vector< Vector< double > > &)
void set_means(const Vector< double > &)
const std::string & get_description(const size_t &) const
const Vector< double > & get_lower_bounds(void) const
const bool & get_display(void) const
const ScalingMethod & get_scaling_method(void) const
Returns the method used for scaling and unscaling the independent parameters.
Vector< std::string > units
Units of independent parameters.
void set_minimums_maximums(const Vector< Vector< double > > &)
void randomize_parameters_normal(void)
ScalingMethod
Enumeration of available methods for scaling and unscaling the independent parameters.
double get_upper_bound(const size_t &) const
void set_maximum(const size_t &, const double &)
void from_XML(const tinyxml2::XMLDocument &)
size_t get_parameters_number(void) const
Vector< double > means
Mean of independent parameters.
bool display
Display messages to screen.
void set_units(const Vector< std::string > &)
const Vector< double > & get_parameters(void) const
Returns the values of the independent parameters.
void set_scaling_method(const ScalingMethod &)
const Vector< double > & get_maximums(void) const
Vector< double > minimums
Minimum of independent parameters.
Vector< Vector< double > * > get_bounds(void)
bool display_range_warning
Display warnings when the the independent parameters fall outside their minimum-maximum range...
void set_lower_bound(const size_t &, const double &)
Vector< double > standard_deviations
Standard deviation of independent parameters.
Vector< Vector< std::string > > arrange_information(void)
Vector< double > upper_bounds
Upper bound of independent parameters.
virtual void set_default(void)
Sets the members of this object to their default values.
const Vector< std::string > & get_names(void) const
void set_parameters_number(const size_t &)
BoundingMethod
Enumeration of available methods for bounding the independent parameters.
void set_upper_bounds(void)
Sets the vector of upper bounds for the independent parameters to have size zero. ...
void set_descriptions(const Vector< std::string > &)
void set_bounding_method(const BoundingMethod &)
std::string write_scaling_method(void) const
Returns a string with the method used for scaling and unscaling the independent parameters.
void set_standard_deviation(const size_t &, const double &)
void set_unit(const size_t &, const std::string &)
double get_lower_bound(const size_t &) const
void unscale_parameters(const Vector< double > &)
const std::string & get_unit(const size_t &) const
tinyxml2::XMLDocument * to_XML(void) const
double get_minimum(const size_t &) const
Vector< double > maximums
Maximum of independent parameters.
void set_minimum(const size_t &, const double &)
const Vector< std::string > & get_units(void) const
const Vector< double > & get_means(void) const
const BoundingMethod & get_bounding_method(void) const
Returns the method used for bounding the independent parameters.
void set_minimums(const Vector< double > &)
Vector< Vector< double > > arrange_means_standard_deviations(void)
void bound_parameter(const size_t &)
void set_upper_bound(const size_t &, const double &)
std::string write_bounding_method(void) const
Returns a string with the method used for bounding the independent parameters.
void set_bounds(void)
Sets the vectors of lower and upper bounds for the independent parameters to have size zero...
void randomize_parameters_uniform(void)
Initializes the independent parameters with values comprised between -1 and +1.
double get_parameter(const size_t &) const
void set_parameters(const Vector< double > &)
bool is_empty(void) const
Returns true if the number of parameters is zero, and false otherwise.
void set_name(const size_t &, const std::string &)
const Vector< double > & get_standard_deviations(void) const
BoundingMethod bounding_method
Independent parameters bounding method.
void set_statistics(const Vector< Vector< double > > &)
Vector< Vector< double > > arrange_statistics(void)
void set_maximums(const Vector< double > &)
double get_mean(const size_t &) const
void set_parameter(const size_t &, const double &)
void set_names(const Vector< std::string > &)
void set_mean(const size_t &, const double &)
virtual ~IndependentParameters(void)
Vector< double > parameters
Independent parameters.
const std::string & get_name(const size_t &) const
std::string to_string(void) const
Returns a string representation of the current independent parameters object.
void initialize_random(void)
ScalingMethod scaling_method
Independent parameters scaling and unscaling method.
IndependentParameters(void)
Vector< Vector< double > > arrange_minimums_maximums(void)
Vector< double > lower_bounds
Lower bound of independent parameters.
void set_lower_bounds(void)
Sets the lower bound of the independent parameters to an empty vector.
Vector< std::string > descriptions
Description of independent parameters.
bool operator==(const IndependentParameters &) const
Vector< double > calculate_scaled_parameters(void) const
double get_standard_deviation(const size_t &) const
void bound_parameters(void)
Makes the independent parameters to fall in the range defined by their lower and the upper bounds...
const Vector< std::string > & get_descriptions(void) const
const Vector< double > & get_upper_bounds(void) const
void set_display(const bool &)
Vector< std::string > names
Name of independent parameters.
void initialize_parameters(const double &)
void set_description(const size_t &, const std::string &)
const Vector< double > & get_minimums(void) const
void set_standard_deviations(const Vector< double > &)
IndependentParameters & operator=(const IndependentParameters &)