Class: QgsPointCloudStatistics¶
Class used to store statistics of a point cloud dataset.
Added in version 3.26.
Methods
Returns a list of existing classes which are present for the specified attribute  | 
|
Clears the statistics of all attributes  | 
|
Merges the current statistics with the statistics from stats  | 
|
Returns the maximum value for the attribute attribute If no matching statistic is available then NaN will be returned.  | 
|
Returns the mean value for the attribute attribute If no matching statistic is available then NaN will be returned.  | 
|
Returns the minimum value for the attribute attribute If no matching statistic is available then NaN will be returned.  | 
|
Returns the number of points used to calculate the statistics  | 
|
Returns the standard deviation value for the attribute attribute If no matching statistic is available then NaN will be returned.  | 
|
Returns the calculated statistics of attribute attribute  | 
|
Converts the current statistics object into JSON object  | 
Static Methods
Creates a statistics object from the JSON object stats  | 
- 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, attributes: Iterable[QgsPointCloudAttribute])[source]
 Clears the statistics of given attributes
attributes- Parameters:
 attributes (Iterable[QgsPointCloudAttribute])
- 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: