Hi there,
I could not figure out how the computation of "mean distance" and "standard deviation" for Cloud/Cloud or Cloud/Mesh Distances work.
Is it something like:
mean dist = sum ( distances ) / n
std deviation = sqrt ( sum ( Xi - Xm )) / n
n: number of all distances
Xi: distance from Point i to its next neighbour
Xm: mean distance
It would be nice if anybody could help me out.
Thanks and Greets
MarkusM
Formula of "mean dist" and "standard deviation"
Re: Formula of "mean dist" and "standard deviation"
The mean distance is what you suggested:
But you forgot a "square" power in the std. deviation equation, and the division is done before the square root:
Which simplifies in:
(well at least it's faster to compute ;)
Code: Select all
mean dist = sum ( distances ) / n
Code: Select all
std deviation = sqrt ( sum ( Xi - Xm )^2 / n )
Code: Select all
std deviation = sqrt( sum ( Xi )^2 / n - mean^2 )
Daniel, CloudCompare admin
Re: Formula of "mean dist" and "standard deviation"
Thank you for the quick response!