18#ifndef QGSPOINTCLOUDSTATISTICS_H
19#define QGSPOINTCLOUDSTATISTICS_H
47 double minimum = std::numeric_limits<double>::max();
48 double maximum = std::numeric_limits<double>::lowest();
90 void clear(
const QVector<QgsPointCloudAttribute> &attributes );
96 QList<int> classesOf(
const QString &attribute )
const;
104 QMap<int, int> availableClasses(
const QString &attribute )
const;
111 double minimum(
const QString &attribute )
const;
117 double maximum(
const QString &attribute )
const;
123 double mean(
const QString &attribute )
const;
129 double stDev(
const QString &attribute )
const;
135 QByteArray toStatisticsJson()
const;
142 QMap<QString, QgsPointCloudAttributeStatistics>
statisticsMap()
const {
return mStatisticsMap; };
145 int mSampledPointsCount = 0;
146 QMap<QString, QgsPointCloudAttributeStatistics> mStatisticsMap;
Attribute for point cloud data pair of name and size in bytes.
Represents an indexed point cloud node's position in octree.
Used to store statistics of a point cloud dataset.
QgsPointCloudStatistics()
int sampledPointsCount() const
Returns the number of points used to calculate the statistics.
QMap< QString, QgsPointCloudAttributeStatistics > statisticsMap() const
Returns a map object containing all the statistics.
Stores statistics of one attribute of a point cloud dataset.
void cumulateStatistics(const QgsPointCloudAttributeStatistics &stats)
Updates the current point cloud statistics to hold the cumulation of the current statistics and stats...
int singleClassCount(int cls) const
Returns the count of points in given class or -1 on error.
QMap< int, int > classCount