Class: QgsPointCloudStatistics¶
Used to store statistics of a point cloud dataset.
Added in version 3.26.
- class qgis.core.QgsPointCloudStatistics[source]¶
Bases:
object- classesOf(self, attribute: str | None) List[int]¶
Returns a list of existing classes which are present for the specified
attribute- Parameters:
attribute (Optional[str])
- Return type:
List[int]
- clear(self)[source]¶
Clears the statistics of all attributes
clear(self, attributes: Iterable[QgsPointCloudAttribute]) Clears the statistics of given attributes
attributes
- combineWith(self, stats: QgsPointCloudStatistics)[source]¶
Merges the current statistics with the statistics from
stats- Parameters:
stats (QgsPointCloudStatistics)
- static fromStatisticsJson(stats: QByteArray | bytes | bytearray) QgsPointCloudStatistics[source]¶
Creates a statistics object from the JSON object
stats- Parameters:
stats (Union[QByteArray, bytes, bytearray])
- Return type:
- maximum(self, attribute: str | None) float[source]¶
Returns the maximum value for the attribute
attributeIf no matching statistic is available then NaN will be returned.- Parameters:
attribute (Optional[str])
- Return type:
float
- mean(self, attribute: str | None) float[source]¶
Returns the mean value for the attribute
attributeIf no matching statistic is available then NaN will be returned.- Parameters:
attribute (Optional[str])
- Return type:
float
- minimum(self, attribute: str | None) float[source]¶
Returns the minimum value for the attribute
attributeIf no matching statistic is available then NaN will be returned.- Parameters:
attribute (Optional[str])
- Return type:
float
- sampledPointsCount(self) int[source]¶
Returns the number of points used to calculate the statistics
- Return type:
int
- stDev(self, attribute: str | None) float[source]¶
Returns the standard deviation value for the attribute
attributeIf no matching statistic is available then NaN will be returned.- Parameters:
attribute (Optional[str])
- Return type:
float
- statisticsOf(self, attribute: str | None) QgsPointCloudAttributeStatistics[source]¶
Returns the calculated statistics of attribute
attribute- Parameters:
attribute (Optional[str])
- Return type: