-
Calculates the observational value for an Area.
[
verification_docs |
Source |
Implementation |
Keywords |
Summary | Ancestors | All Members | Descendants ]
- DESCRIPTION
- AUTHOR
Class Summary
class Observation
{
public:
- Observation( const vector<Area> & s1a, const vector<Area> & s2a, const vector<Area> & s3a, const vector<Area> & s4a, const vector<Area> & t, const string & formatType, const Date& d);
- Observation(const Observation& g);
- ~Observation();
- Observation& operator=(const Observation& rhs);
- int getNumAreas() ;
- int getNumSubAreas(const int& i) ;
- float getSub1AreaAvg(const int&i) ;
- float getSub2AreaAvg(const int&i) ;
- float getSub3AreaAvg(const int&i) ;
- float getSub4AreaAvg(const int&i) ;
- float getTotalAreaAvg(const int&i) ;
- float getSub1SubAreaAvg(const int& i, const int& j) ;
- float getSub2SubAreaAvg(const int& i, const int& j) ;
- float getSub3SubAreaAvg(const int& i, const int& j) ;
- float getSub4SubAreaAvg(const int& i, const int& j) ;
- float getTotalSubAreaAvg(const int& i, const int& j) ;
- string getName(const int& i) ;
- string getSubName(const int& i, const int& j) ;
- Date getDate() const ;
- void show(const ShowStyle& s );
protected:
private:
- friend ostream& operator<<(ostream &os, const Observation& o);
- string _formatType;
- Date _date;
- vector<float> _sub1AreaAvg;
- vector<float> _sub2AreaAvg;
- vector<float> _sub3AreaAvg;
- vector<float> _sub4AreaAvg;
- vector<float> _totalAreaAvg;
- vector< vector<float> > _sub1SubAreaAvg;
- vector< vector<float> > _sub2SubAreaAvg;
- vector< vector<float> > _sub3SubAreaAvg;
- vector< vector<float> > _sub4SubAreaAvg;
- vector< vector<float> > _totalSubAreaAvg;
- vector<string> _names;
- vector< vector<string> > _subNames;
- void _createAverages(const vector<Area>& a, vector<float>& dp, vector< vector<float> >& sdp);
}; // Observation
DESCRIPTION
Each observation represents 1 day's worth of data. It
has 5 vectors of float one for each subperiod and
one for the total. The number of floats in the
vector is the same as the number of Areas that the
original grid was divided into. Each float within
a vector represents the average value for that Area for
that period.
AUTHOR
Mike Smoot
friend ostream& operator<<(ostream &os, const Observation& o);
Operator <<
friend ostream& operator<<(ostream &os, const Observation& o);
Observation( const vector<Area> & s1a, const vector<Area> & s2a, const vector<Area> & s3a, const vector<Area> & s4a, const vector<Area> & t, const string & formatType, const Date& d);
Constructor
Observation( const vector<Area> & s1a,
const vector<Area> & s2a,
const vector<Area> & s3a,
const vector<Area> & s4a,
const vector<Area> & t,
const string & formatType,
const Date& d);
Observation(const Observation& g);
Copy constructor.
Observation(const Observation& g);
~Observation();
Destructor
~Observation();
Observation& operator=(const Observation& rhs);
Operator =
Observation& operator=(const Observation& rhs);
int getNumAreas() ;
Returns the number of areas.
int getNumAreas() ;
Function is currently defined inline.
int getNumSubAreas(const int& i) ;
Returns the number of sub areas.
int getNumSubAreas(const int& i) ;
Function is currently defined inline.
float getSub1AreaAvg(const int&i) ;
Returns area average for sub period 1.
float getSub1AreaAvg(const int&i) ;
Function is currently defined inline.
float getSub2AreaAvg(const int&i) ;
Returns area average for sub period 2.
float getSub2AreaAvg(const int&i) ;
Function is currently defined inline.
float getSub3AreaAvg(const int&i) ;
Returns area average for sub period 3.
float getSub3AreaAvg(const int&i) ;
Function is currently defined inline.
float getSub4AreaAvg(const int&i) ;
Returns area average for sub period 4.
float getSub4AreaAvg(const int&i) ;
Function is currently defined inline.
float getTotalAreaAvg(const int&i) ;
Returns area average for whole day (all sub periods).
float getTotalAreaAvg(const int&i) ;
Function is currently defined inline.
float getSub1SubAreaAvg(const int& i, const int& j) ;
Returns sub area average for sub period 1.
float getSub1SubAreaAvg(const int& i, const int& j)
;
Function is currently defined inline.
float getSub2SubAreaAvg(const int& i, const int& j) ;
Returns sub area average for sub period 2.
float getSub2SubAreaAvg(const int& i, const int& j)
;
Function is currently defined inline.
float getSub3SubAreaAvg(const int& i, const int& j) ;
Returns sub area average for sub period 3.
float getSub3SubAreaAvg(const int& i, const int& j)
;
Function is currently defined inline.
float getSub4SubAreaAvg(const int& i, const int& j) ;
Returns sub area average for sub period 4.
float getSub4SubAreaAvg(const int& i, const int& j)
;
Function is currently defined inline.
float getTotalSubAreaAvg(const int& i, const int& j) ;
Returns sub area average for all whole day (all sub periods).
float getTotalSubAreaAvg(const int& i, const int& j)
;
Function is currently defined inline.
string getName(const int& i) ;
Returns area name indicated by index.
string getName(const int& i) ;
Function is currently defined inline.
string getSubName(const int& i, const int& j) ;
Returns sub area name indicated by area, sub area indices.
string getSubName(const int& i, const int& j)
;
Function is currently defined inline.
Date getDate() const ;
Returns date of obs.
Date getDate() const
;
Function is currently defined inline.
void show(const ShowStyle& s );
Dumps output to stdout according to specifed style.
void show(const ShowStyle& s = HUMAN);
string _formatType;
Format description.
string _formatType;
Date _date;
Observation Date.
Date _date;
vector<float> _sub1AreaAvg;
The sub-period 1 observed precipitation for different Areas.
vector<float> _sub1AreaAvg;
vector<float> _sub2AreaAvg;
The sub-period 2 observed precipitation for different Areas.
vector<float> _sub2AreaAvg;
vector<float> _sub3AreaAvg;
The sub-period 3 observed precipitation for different Areas.
vector<float> _sub3AreaAvg;
vector<float> _sub4AreaAvg;
The sub-period 4 observed precipitation for different Areas.
vector<float> _sub4AreaAvg;
vector<float> _totalAreaAvg;
The total observed precipitation for different Areas.
vector<float> _totalAreaAvg;
vector< vector<float> > _sub1SubAreaAvg;
The sub-period 1 observed precipitation for different
sub areas indexed by area.
vector< vector<float> > _sub1SubAreaAvg;
vector< vector<float> > _sub2SubAreaAvg;
The sub-period 2 observed precipitation for different
sub areas indexed by area.
vector< vector<float> > _sub2SubAreaAvg;
vector< vector<float> > _sub3SubAreaAvg;
The sub-period 3 observed precipitation for different
sub areas indexed by area.
vector< vector<float> > _sub3SubAreaAvg;
vector< vector<float> > _sub4SubAreaAvg;
The sub-period 4 observed precipitation for different
sub areas indexed by area.
vector< vector<float> > _sub4SubAreaAvg;
vector< vector<float> > _totalSubAreaAvg;
The total observed precipitation for different
sub areas indexed by area.
vector< vector<float> > _totalSubAreaAvg;
vector<string> _names;
The names of the areas in the Observation.
vector<string> _names;
vector< vector<string> > _subNames;
The names of the sub areas in the Observation.
vector< vector<string> > _subNames;
void _createAverages(const vector<Area>& a, vector<float>& dp, vector< vector<float> >& sdp);
Method that takes the average value of each Area and assigns
the value to a vector of floats.
void _createAverages(const vector<Area>& a,
vector<float>& dp,
vector< vector<float> >& sdp);
All Members
- public:
- Observation& operator=(const Observation& rhs);
- int getNumAreas() ;
- int getNumSubAreas(const int& i) ;
- float getSub1AreaAvg(const int&i) ;
- float getSub2AreaAvg(const int&i) ;
- float getSub3AreaAvg(const int&i) ;
- float getSub4AreaAvg(const int&i) ;
- float getTotalAreaAvg(const int&i) ;
- float getSub1SubAreaAvg(const int& i, const int& j) ;
- float getSub2SubAreaAvg(const int& i, const int& j) ;
- float getSub3SubAreaAvg(const int& i, const int& j) ;
- float getSub4SubAreaAvg(const int& i, const int& j) ;
- float getTotalSubAreaAvg(const int& i, const int& j) ;
- string getName(const int& i) ;
- string getSubName(const int& i, const int& j) ;
- Date getDate() const ;
- void show(const ShowStyle& s );
- protected:
Ancestors
Class does not inherit from any other class.
Descendants
Class is not inherited by any others.
Generated from source by the Cocoon utilities on Wed Aug 30 12:53:38 2000
.
Report problems to jkotula@stratasys.com