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#ifndef CMBVECTORSET_H
2#define CMBVECTORSET_H
3
4#include "interface.h"
5#include "cmbvector.h"
6#include <map>
7
16class CMBVectorSet : public Interface, public map<string, CMBVector>
17{
18public:
23
28 CMBVectorSet(const CMBVectorSet& mp);
29
36
41 QJsonObject toJsonObject() const override;
42
48 bool ReadFromJsonObject(const QJsonObject& jsonobject) override;
49
54 string ToString() const override;
55
63 QTableWidget* ToTable() override;
64
70 bool writetofile(QFile* file) override;
71
78 string Label(string column, int j) const;
79
86 double valueAt(const string& columnlabel, int j) const;
87
93 CMBVector& GetColumn(const string columnlabel);
94
100 void Append(const string& columnlabel, const CMBVector& vectorset);
101
106 unsigned int MaxSize() const;
107
112 double max() const;
113
118 double min() const;
119
128 double FTest_p_value() const;
129
138 double OverallMean() const;
139
144 int TotalNumberofObservations() const;
145
146private:
147
148};
149
150#endif // CMBVECTORSET_H
Collection of named CMBVector objects for multi-variable analysis.
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.
string Label(string column, int j) const
Gets label at specified position in a column.
double OverallMean() const
Computes overall mean across all vectors.
CMBVectorSet()
Default constructor - creates an empty vector set.
QJsonObject toJsonObject() const override
Serializes vector set to JSON format.
CMBVector & GetColumn(const string columnlabel)
Gets reference to a named column vector.
int TotalNumberofObservations() const
Counts total number of observations across all vectors.
unsigned int MaxSize() const
Finds the maximum size among all vectors.
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:17
Abstract base class providing common serialization and visualization interface.
Definition interface.h:65