Class RegionBSPTree1D.RegionSizePropertiesVisitor

java.lang.Object
org.apache.commons.geometry.euclidean.oned.RegionBSPTree1D.RegionSizePropertiesVisitor
All Implemented Interfaces:
BiConsumer<OrientedPoint,OrientedPoint>
Enclosing class:
RegionBSPTree1D

private static final class RegionBSPTree1D.RegionSizePropertiesVisitor extends Object implements BiConsumer<OrientedPoint,OrientedPoint>
Internal class for calculating size-related properties for a RegionBSPTree1D.
  • Field Details

    • count

      private int count
      Number of inside intervals visited.
    • size

      private double size
      Total computed size of all inside regions.
    • rawCentroidSum

      private double rawCentroidSum
      Raw sum of the centroids of each inside interval.
    • scaledCentroidSum

      private double scaledCentroidSum
      The sum of the centroids of each inside interval, scaled by the size of the interval.
  • Constructor Details

    • RegionSizePropertiesVisitor

      private RegionSizePropertiesVisitor()
  • Method Details