|
QGIS API Documentation 3.99.0-Master (21b3aa880ba)
|
Used to store statistics of a point cloud dataset. More...
#include <qgspointcloudstatistics.h>
Public Member Functions | |
| QgsPointCloudStatistics () | |
| QgsPointCloudStatistics (int sampledPointsCount, const QMap< QString, QgsPointCloudAttributeStatistics > &stats) | |
| Constructor from statistics map. | |
| QMap< int, int > | availableClasses (const QString &attribute) const |
| Returns a map containing the count of each class of the attribute attribute If no matching statistic is available then an empty map will be returned. | |
| QList< int > | classesOf (const QString &attribute) const |
| Returns a list of existing classes which are present for the specified attribute. | |
| void | clear () |
| Clears the statistics of all attributes. | |
| void | clear (const QVector< QgsPointCloudAttribute > &attributes) |
| Clears the statistics of given attributes attributes. | |
| void | combineWith (const QgsPointCloudStatistics &stats) |
| Merges the current statistics with the statistics from stats. | |
| double | maximum (const QString &attribute) const |
| Returns the maximum value for the attribute attribute If no matching statistic is available then NaN will be returned. | |
| double | mean (const QString &attribute) const |
| Returns the mean value for the attribute attribute If no matching statistic is available then NaN will be returned. | |
| double | minimum (const QString &attribute) const |
| Returns the minimum value for the attribute attribute If no matching statistic is available then NaN will be returned. | |
| 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. | |
| QgsPointCloudAttributeStatistics | statisticsOf (const QString &attribute) const |
| Returns the calculated statistics of attribute attribute. | |
| double | stDev (const QString &attribute) const |
| Returns the standard deviation value for the attribute attribute If no matching statistic is available then NaN will be returned. | |
| QByteArray | toStatisticsJson () const |
| Converts the current statistics object into JSON object. | |
Static Public Member Functions | |
| static QgsPointCloudStatistics | fromStatisticsJson (const QByteArray &stats) |
| Creates a statistics object from the JSON object stats. | |
Used to store statistics of a point cloud dataset.
Definition at line 73 of file qgspointcloudstatistics.h.
| QgsPointCloudStatistics::QgsPointCloudStatistics | ( | ) |
Definition at line 59 of file qgspointcloudstatistics.cpp.
| QgsPointCloudStatistics::QgsPointCloudStatistics | ( | int | sampledPointsCount, |
| const QMap< QString, QgsPointCloudAttributeStatistics > & | stats ) |
Constructor from statistics map.
Definition at line 64 of file qgspointcloudstatistics.cpp.
| QMap< int, int > QgsPointCloudStatistics::availableClasses | ( | const QString & | attribute | ) | const |
Returns a map containing the count of each class of the attribute attribute If no matching statistic is available then an empty map will be returned.
Definition at line 100 of file qgspointcloudstatistics.cpp.
| QList< int > QgsPointCloudStatistics::classesOf | ( | const QString & | attribute | ) | const |
Returns a list of existing classes which are present for the specified attribute.
Definition at line 92 of file qgspointcloudstatistics.cpp.
| void QgsPointCloudStatistics::clear | ( | ) |
Clears the statistics of all attributes.
Definition at line 70 of file qgspointcloudstatistics.cpp.
| void QgsPointCloudStatistics::clear | ( | const QVector< QgsPointCloudAttribute > & | attributes | ) |
Clears the statistics of given attributes attributes.
Definition at line 75 of file qgspointcloudstatistics.cpp.
| void QgsPointCloudStatistics::combineWith | ( | const QgsPointCloudStatistics & | stats | ) |
Merges the current statistics with the statistics from stats.
Definition at line 136 of file qgspointcloudstatistics.cpp.
|
static |
Creates a statistics object from the JSON object stats.
Definition at line 167 of file qgspointcloudstatistics.cpp.
| double QgsPointCloudStatistics::maximum | ( | const QString & | attribute | ) | const |
Returns the maximum value for the attribute attribute If no matching statistic is available then NaN will be returned.
Definition at line 114 of file qgspointcloudstatistics.cpp.
| double QgsPointCloudStatistics::mean | ( | const QString & | attribute | ) | const |
Returns the mean value for the attribute attribute If no matching statistic is available then NaN will be returned.
Definition at line 121 of file qgspointcloudstatistics.cpp.
| double QgsPointCloudStatistics::minimum | ( | const QString & | attribute | ) | const |
Returns the minimum value for the attribute attribute If no matching statistic is available then NaN will be returned.
Definition at line 107 of file qgspointcloudstatistics.cpp.
|
inline |
Returns the number of points used to calculate the statistics.
Definition at line 84 of file qgspointcloudstatistics.h.
|
inline |
Returns a map object containing all the statistics.
Definition at line 142 of file qgspointcloudstatistics.h.
| QgsPointCloudAttributeStatistics QgsPointCloudStatistics::statisticsOf | ( | const QString & | attribute | ) | const |
Returns the calculated statistics of attribute attribute.
Definition at line 83 of file qgspointcloudstatistics.cpp.
| double QgsPointCloudStatistics::stDev | ( | const QString & | attribute | ) | const |
Returns the standard deviation value for the attribute attribute If no matching statistic is available then NaN will be returned.
Definition at line 128 of file qgspointcloudstatistics.cpp.
| QByteArray QgsPointCloudStatistics::toStatisticsJson | ( | ) | const |
Converts the current statistics object into JSON object.
Definition at line 151 of file qgspointcloudstatistics.cpp.