Observations is an abstract class that extends BasicData. It defines the interface of how to interact with the underlying data storage. This interface is accepted by the Analog Ensemble algorithm.
More...
#include <Observations.h>
|
| Observations () |
|
| Observations (const Observations &orig) |
|
| Observations (const Parameters &, const Stations &, const Times &) |
|
virtual | ~Observations () |
|
virtual std::size_t | num_elements () const =0 |
|
virtual const double * | getValuesPtr () const =0 |
|
virtual double * | getValuesPtr ()=0 |
|
virtual void | setDimensions (const Parameters ¶meters, const Stations &stations, const Times ×)=0 |
|
virtual void | initialize (double)=0 |
|
virtual double | getValue (std::size_t parameter_index, std::size_t station_index, std::size_t time_index) const =0 |
|
virtual void | setValue (double val, std::size_t parameter_index, std::size_t station_index, std::size_t time_index)=0 |
|
virtual void | subset (Observations &) const =0 |
|
virtual void | subset (const Parameters &, const Stations &, const Times &, Observations &) const =0 |
|
virtual void | print (std::ostream &) const |
|
| BasicData () |
|
| BasicData (const Parameters &, const Stations &, const Times &) |
|
| BasicData (const BasicData &orig) |
|
virtual | ~BasicData () |
|
void | setMembers (const Parameters &, const Stations &, const Times &) |
|
const Parameters & | getParameters () const |
|
const Stations & | getStations () const |
|
const Times & | getTimes () const |
|
Parameters & | getParameters () |
|
Stations & | getStations () |
|
Times & | getTimes () |
|
std::size_t | getTimeStamp (std::size_t index) const |
|
std::size_t | getTimeIndex (std::size_t timestamp) const |
|
std::size_t | getTimeIndex (const Time &) const |
|
BasicData & | operator= (const BasicData &) |
|
Observations is an abstract class that extends BasicData. It defines the interface of how to interact with the underlying data storage. This interface is accepted by the Analog Ensemble algorithm.
◆ Observations() [1/3]
Observations::Observations |
( |
| ) |
|
◆ Observations() [2/3]
◆ Observations() [3/3]
◆ ~Observations()
Observations::~Observations |
( |
| ) |
|
|
virtual |
◆ getValue()
virtual double Observations::getValue |
( |
std::size_t |
parameter_index, |
|
|
std::size_t |
station_index, |
|
|
std::size_t |
time_index |
|
) |
| const |
|
pure virtual |
Gets or sets a value using the array indices.
- Parameters
-
- Returns
- a value.
Implemented in ObservationsPointer.
◆ getValuesPtr() [1/2]
virtual const double * Observations::getValuesPtr |
( |
| ) |
const |
|
pure virtual |
Gets a double pointer to the start of the values.
- Returns
- A double pointer.
Implemented in ObservationsPointer.
◆ getValuesPtr() [2/2]
virtual double * Observations::getValuesPtr |
( |
| ) |
|
|
pure virtual |
◆ initialize()
virtual void Observations::initialize |
( |
double |
| ) |
|
|
pure virtual |
◆ num_elements()
virtual std::size_t Observations::num_elements |
( |
| ) |
const |
|
pure virtual |
Returns the total number of data values as one dimension.
- Returns
- A value.
Implemented in ObservationsPointer.
◆ print()
void Observations::print |
( |
std::ostream & |
| ) |
const |
|
virtual |
◆ setDimensions()
virtual void Observations::setDimensions |
( |
const Parameters & |
parameters, |
|
|
const Stations & |
stations, |
|
|
const Times & |
times |
|
) |
| |
|
pure virtual |
Sets the dimensions of forecasts and allocates memory for data values.
- Parameters
-
Implemented in ObservationsPointer.
◆ setValue()
virtual void Observations::setValue |
( |
double |
val, |
|
|
std::size_t |
parameter_index, |
|
|
std::size_t |
station_index, |
|
|
std::size_t |
time_index |
|
) |
| |
|
pure virtual |
◆ subset() [1/2]
◆ subset() [2/2]
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & |
, |
|
|
const Observations & |
|
|
) |
| |
|
friend |
The documentation for this class was generated from the following files: