SedSat3 1.1.6
Sediment Source Apportionment Tool - Advanced statistical methods for environmental pollution research
Loading...
Searching...
No Matches
cmbvectorsetset.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 CMBVectorSetSetSET_H
5#define CMBVectorSetSetSET_H
6
7#include "interface.h"
8#include "cmbvectorset.h"
9#include <map>
10
20class CMBVectorSetSet : public Interface, public map<string, CMBVectorSet>
21{
22public:
27
33
40
45 QJsonObject toJsonObject() const override;
46
52 bool ReadFromJsonObject(const QJsonObject& jsonobject) override;
53
58 string ToString() const override;
59
68 QTableWidget* ToTable() override;
69
75 bool writetofile(QFile* file) override;
76
84 string Label(const string& vectorset, const string& column, int j) const;
85
93 double valueAt(const string& vectorset, const string& columnlabel, int j) const;
94
101 CMBVector& GetColumn(const string& vectorset, const string& columnlabel);
102
108 void Append(const string& columnlabel, const CMBVectorSet& vectorset);
109
114 unsigned int MaxSize() const;
115
120 double max() const;
121
126 double min() const;
127
128private:
129
130};
131
132#endif // CMBVectorSetSetSET_H
double min() const
Finds the minimum value across all vectors in all sets.
CMBVector & GetColumn(const string &vectorset, const string &columnlabel)
Gets reference to a named column vector within a vector set.
double max() const
Finds the maximum value across all vectors in all sets.
string ToString() const override
Converts vector set set to string representation.
double valueAt(const string &vectorset, const string &columnlabel, int j) const
Gets value at specified position in a column within a vector set.
QTableWidget * ToTable() override
Creates a QTableWidget for displaying vector set set data.
bool ReadFromJsonObject(const QJsonObject &jsonobject) override
Deserializes vector set set from JSON format.
string Label(const string &vectorset, const string &column, int j) const
Gets label at specified position in a column within a vector set.
void Append(const string &columnlabel, const CMBVectorSet &vectorset)
Adds or replaces a vector set in the collection.
CMBVectorSetSet()
Default constructor - creates an empty vector set set.
unsigned int MaxSize() const
Finds the maximum size among all vectors in all sets.
bool writetofile(QFile *file) override
Writes vector set set to file.
QJsonObject toJsonObject() const override
Serializes vector set set to JSON format.
CMBVectorSetSet & operator=(const CMBVectorSetSet &mp)
Assignment operator.
Collection of named CMBVector objects for multi-variable analysis.
Vector class with string labels for Chemical Mass Balance analysis.
Definition cmbvector.h:20
Interface()
Default constructor.
Definition interface.cpp:6