Class: QgsPointCloudStatistics

class qgis.core.QgsPointCloudStatistics

Bases: sip.wrapper

Class used to store statistics of a point cloud dataset.

New in version 3.26.

QgsPointCloudStatistics() Constructor

QgsPointCloudStatistics(QgsPointCloudStatistics)

Methods

classesOf

Returns a list of existing classes which are present for the specified attribute

clear

Clears the statistics of all attributes

combineWith

Merges the current statistics with the statistics from stats

fromStatisticsJson

Creates a statistics object from the JSON object stats

maximum

Returns the maximum value for the attribute attribute If no matching statistic is available then NaN will be returned.

mean

Returns the mean value for the attribute attribute If no matching statistic is available then NaN will be returned.

minimum

Returns the minimum value for the attribute attribute If no matching statistic is available then NaN will be returned.

sampledPointsCount

Returns the number of points used to calculate the statistics

stDev

Returns the standard deviation value for the attribute attribute If no matching statistic is available then NaN will be returned.

statisticsOf

Returns the calculated statistics of attribute attribute

toStatisticsJson

Converts the current statistics object into JSON object

classesOf(self, attribute: str) List[int]

Returns a list of existing classes which are present for the specified attribute

Parameters:

attribute (str) –

Return type:

List[int]

clear(self)

Clears the statistics of all attributes

clear(self, attributes: Iterable[QgsPointCloudAttribute]) Clears the statistics of given attributes attributes

combineWith(self, stats: QgsPointCloudStatistics)

Merges the current statistics with the statistics from stats

Parameters:

stats (QgsPointCloudStatistics) –

fromStatisticsJson(stats: QByteArray | bytes | bytearray) QgsPointCloudStatistics

Creates a statistics object from the JSON object stats

Parameters:

stats (Union[QByteArray) –

Return type:

QgsPointCloudStatistics

maximum(self, attribute: str) float

Returns the maximum value for the attribute attribute If no matching statistic is available then NaN will be returned.

Parameters:

attribute (str) –

Return type:

float

mean(self, attribute: str) float

Returns the mean value for the attribute attribute If no matching statistic is available then NaN will be returned.

Parameters:

attribute (str) –

Return type:

float

minimum(self, attribute: str) float

Returns the minimum value for the attribute attribute If no matching statistic is available then NaN will be returned.

Parameters:

attribute (str) –

Return type:

float

sampledPointsCount(self) int

Returns the number of points used to calculate the statistics

Return type:

int

stDev(self, attribute: str) float

Returns the standard deviation value for the attribute attribute If no matching statistic is available then NaN will be returned.

Parameters:

attribute (str) –

Return type:

float

statisticsOf(self, attribute: str) QgsPointCloudAttributeStatistics

Returns the calculated statistics of attribute attribute

Parameters:

attribute (str) –

Return type:

QgsPointCloudAttributeStatistics

toStatisticsJson(self) QByteArray

Converts the current statistics object into JSON object

Return type:

QByteArray