SedSat3 1.1.6
Sediment Source Apportionment Tool - Advanced statistical methods for environmental pollution research
Loading...
Searching...
No Matches
cmbvectorset.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 CMBVECTORSET_H
5#define CMBVECTORSET_H
6
7#include "interface.h"
8#include "cmbvector.h"
9#include <map>
10
19class CMBVectorSet : public Interface, public map<string, CMBVector>
20{
21public:
26
31 CMBVectorSet(const CMBVectorSet& mp);
32
39
44 QJsonObject toJsonObject() const override;
45
51 bool ReadFromJsonObject(const QJsonObject& jsonobject) override;
52
57 string ToString() const override;
58
66 QTableWidget* ToTable() override;
67
73 bool writetofile(QFile* file) override;
74
81 string Label(const string& column, int j) const;
82
89 double valueAt(const string& columnlabel, int j) const;
90
96 CMBVector& GetColumn(const string& columnlabel);
97
103 void Append(const string& columnlabel, const CMBVector& vectorset);
104
109 unsigned int MaxSize() const;
110
115 double max() const;
116
121 double min() const;
122
131 double FTest_p_value() const;
132
141 double OverallMean() const;
142
147 int TotalNumberofObservations() const;
148
149private:
150
151};
152
153#endif // CMBVECTORSET_H
QTableWidget * ToTable() override
Creates a QTableWidget for displaying vector set data.
void Append(const string &columnlabel, const CMBVector &vectorset)
Adds or replaces a vector in the set.
double min() const
Finds the minimum value across all vectors.
double OverallMean() const
Computes overall mean across all vectors.
CMBVectorSet()
Default constructor - creates an empty vector set.
string Label(const string &column, int j) const
Gets label at specified position in a column.
QJsonObject toJsonObject() const override
Serializes vector set to JSON format.
int TotalNumberofObservations() const
Counts total number of observations across all vectors.
unsigned int MaxSize() const
Finds the maximum size among all vectors.
CMBVector & GetColumn(const string &columnlabel)
Gets reference to a named column vector.
bool writetofile(QFile *file) override
Writes vector set to file.
double FTest_p_value() const
Computes F-test p-value for ANOVA.
double max() const
Finds the maximum value across all vectors.
CMBVectorSet & operator=(const CMBVectorSet &mp)
Assignment operator.
double valueAt(const string &columnlabel, int j) const
Gets value at specified position in a column.
string ToString() const override
Converts vector set to string representation.
bool ReadFromJsonObject(const QJsonObject &jsonobject) override
Deserializes vector set from JSON format.
Vector class with string labels for Chemical Mass Balance analysis.
Definition cmbvector.h:20
Interface()
Default constructor.
Definition interface.cpp:6