|
SedSat3 1.1.6
Sediment Source Apportionment Tool - Advanced statistical methods for environmental pollution research
|
#include </home/runner/work/SedSat3/SedSat3/range.h>


Public Member Functions | |
| Range () | |
| Range (const Range &rhs) | |
| Range & | operator= (const Range &rhs) |
| QJsonObject | toJsonObject () const override |
| Serialize object to JSON format. | |
| bool | ReadFromJsonObject (const QJsonObject &jsonobject) override |
| Deserialize object from JSON format. | |
| string | ToString () const override |
| Convert object to string representation. | |
| bool | writetofile (QFile *) override |
| Write object data to a file. | |
| bool | Read (const QStringList &strlist) override |
| Parse object data from a string list. | |
| void | Set (_range lowhigh, const double &value) |
| double | Get (_range lowhigh) const |
| double | Mean () const |
| void | SetMean (const double &m) |
| double | Median () const |
| void | SetMedian (const double &m) |
| void | SetValue (const double value) |
| double | GetValue () |
Public Member Functions inherited from Interface | |
| Interface () | |
| Default constructor. | |
| Interface (const Interface &intf) | |
| Copy constructor. | |
| Interface & | operator= (const Interface &intf) |
| Assignment operator. | |
| virtual QTableWidget * | ToTable () |
| Create a Qt table widget representation of the data. | |
| string | GetNotes () const |
| Get the notes/annotations associated with this object. | |
| void | SetNotes (const string ¬e) |
| Set the notes for this object, replacing any existing notes. | |
| void | AppendtoNotes (const string ¬e) |
| Append a note to existing notes. | |
| void | ClearNotes () |
| Clear all notes associated with this object. | |
| void | SetLimit (_range lowhigh, const double &value) |
| Set upper or lower limit for value highlighting. | |
| void | SetOption (options_key opt, bool val) |
| Set a configuration option. | |
| bool | Option (options_key opt) |
| Get the current value of a configuration option. | |
| options & | GetOptions () |
| Get reference to the options structure. | |
| QString | XAxisLabel () const |
| Get the X-axis label. | |
| QString | YAxisLabel () const |
| Get the Y-axis label. | |
| bool | SetXAxisLabel (const QString &label) |
| Set the X-axis label. | |
| bool | SetYAxisLabel (const QString &label) |
| Set the Y-axis label. | |
Private Attributes | |
| vector< double > | range |
| double | median = 0 |
| double | mean = 0 |
| double | observed_value =0 |
Additional Inherited Members | |
Public Attributes inherited from Interface | |
| double | lowlimit |
| Lower threshold for value highlighting (when enabled) | |
| double | highlimit |
| Upper threshold for value highlighting (when enabled) | |
| bool | highlightoutsideoflimit = false |
| Flag indicating whether to highlight values outside defined limits. | |
| Range::Range | ( | const Range & | rhs | ) |
| double Range::Get | ( | _range | lowhigh | ) | const |
Definition at line 71 of file range.cpp.
Referenced by SourceSinkData::MCMC_Batch().
|
inline |
Definition at line 25 of file range.h.
References observed_value.
|
inline |
|
inline |
Definition at line 22 of file range.h.
References median.
Referenced by SourceSinkData::MCMC_Batch().
Definition at line 18 of file range.cpp.
References mean, median, observed_value, Interface::operator=(), and range.
|
overridevirtual |
Parse object data from a string list.
| strlist | List of strings containing the data to parse |
Pure virtual method for text-based deserialization. Each string in the list typically represents one line of input data.
Reimplemented from Interface.
|
overridevirtual |
Deserialize object from JSON format.
| jsonobject | The JSON object to read from |
Pure virtual method for JSON deserialization. Derived classes must implement this to reconstruct their data structure from a JSON object.
Reimplemented from Interface.
Definition at line 40 of file range.cpp.
References mean, median, observed_value, and range.
Referenced by RangeSet::ReadFromJsonObject().
| void Range::Set | ( | _range | lowhigh, |
| const double & | value | ||
| ) |
Definition at line 64 of file range.cpp.
Referenced by SourceSinkData::BootStrap(), and SourceSinkData::MCMC().
|
inline |
Definition at line 21 of file range.h.
References mean.
Referenced by SourceSinkData::BootStrap(), and SourceSinkData::MCMC().
|
inline |
Definition at line 23 of file range.h.
References median.
Referenced by SourceSinkData::BootStrap(), and SourceSinkData::MCMC().
|
inline |
Definition at line 24 of file range.h.
References observed_value.
Referenced by SourceSinkData::MCMC().
|
overridevirtual |
Serialize object to JSON format.
Pure virtual method for JSON serialization. Derived classes must implement this to convert their data structure to a JSON object suitable for saving to .json files or transmitting over network.
Reimplemented from Interface.
Definition at line 28 of file range.cpp.
References mean, median, observed_value, and range.
|
overridevirtual |
Convert object to string representation.
Pure virtual method that must be implemented by derived classes to provide a human-readable string representation of their data. Typically used for text file export or debugging.
Reimplemented from Interface.
Definition at line 50 of file range.cpp.
References range.
Referenced by writetofile().
|
overridevirtual |
Write object data to a file.
| file | Pointer to an open QFile object for writing |
Pure virtual method for file output. Derived classes implement this to write their data to an open file stream in their preferred text format.
Reimplemented from Interface.
Definition at line 54 of file range.cpp.
References ToString().
|
private |
Definition at line 29 of file range.h.
Referenced by Range(), SourceSinkData::MCMC(), Mean(), operator=(), ReadFromJsonObject(), SetMean(), and toJsonObject().
|
private |
Definition at line 28 of file range.h.
Referenced by Range(), Median(), operator=(), ReadFromJsonObject(), SetMedian(), and toJsonObject().
|
private |
Definition at line 30 of file range.h.
Referenced by Range(), GetValue(), operator=(), ReadFromJsonObject(), SetValue(), and toJsonObject().
|
private |
Definition at line 27 of file range.h.
Referenced by Range(), Range(), Get(), operator=(), ReadFromJsonObject(), Set(), toJsonObject(), and ToString().