SedSat3 1.1.6
Sediment Source Apportionment Tool - Advanced statistical methods for environmental pollution research
Loading...
Searching...
No Matches
observation.h
Go to the documentation of this file.
1// SedSAT3 – Sediment Source Assessment Tool, version 3
2// U.S. Geological Survey. See LICENSE.md and DISCLAIMER.md in the repository root.
3
4#ifndef OBSERVATION_H
5#define OBSERVATION_H
6
7#include "TimeSeries.h"
8
10{
11public:
13 Observation(const Observation &obs);
15 void SetName(const std::string &nam) {name = nam;}
16 std::string Name() {return name;}
17 std::string GetName() { return name; }
18 void SetValues(const TimeSeries<double> &values);
19 TimeSeries<double> Values() {return values;}
20 double Value() {
21 if (values.size()>0)
22 return values.getValue(0);
23 else
24 return 0;
25 };
26 void AppendValues(const double &t, const double &val);
28 void SetPredictedValue(const double &value) {predicted_value = value;}
29private:
30 TimeSeries<double> values;
31 double predicted_value = 0;
32 std::string name;
33};
34
35#endif // OBSERVATION_H
void SetName(const std::string &nam)
Definition observation.h:15
std::string Name()
Definition observation.h:16
std::string GetName()
Definition observation.h:17
double predicted_value
Definition observation.h:31
void SetValues(const TimeSeries< double > &values)
void SetPredictedValue(const double &value)
Definition observation.h:28
void AppendValues(const double &t, const double &val)
TimeSeries< double > Values()
Definition observation.h:19
Observation & operator=(const Observation &obs)
std::string name
Definition observation.h:32
double Value()
Definition observation.h:20
double PredictedValue()
Definition observation.h:27
TimeSeries< double > values
Definition observation.h:30