public final class RunningSumPoint extends Object
Constructor and Description |
---|
RunningSumPoint() |
Modifier and Type | Method and Description |
---|---|
long |
countXY()
The count for the X or Y dimensions.
|
long |
countZ()
The count for the Z dimension.
|
void |
increment(Point2d point)
Increments the running-sum by a
Point2d . |
void |
increment(Point2i point)
Increments the running-sum by a
Point2i . |
void |
increment(Point3d point)
Increments the running-sum by a
Point3d . |
void |
increment(Point3i point)
Increments the running-sum by a
Point3i . |
Point3d |
mean()
The mean value of all points added to the running-sum, separately for all three-dimensions.
|
Point2d |
meanXY()
The mean value of all points added to the running-sum, only for the X- and Y-dimensions.
|
public void increment(Point2i point)
Point2i
.
No impact occurs on the third-dimension of the running-sum.
point
- the point to add to the running sum.public void increment(Point2d point)
Point2d
.
No impact occurs on the third-dimension of the running-sum.
point
- the point to add to the running sum.public void increment(Point3i point)
Point3i
.point
- the point to add to the running sum.public void increment(Point3d point)
Point3d
.point
- the point to add to the running sum.public Point3d mean()
public Point2d meanXY()
public long countXY()
The count is guaranteed to always be the same for either the X or Y dimension.
public long countZ()
This is identical to countXY()
if only 3D points have been added.
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.