Module org.elasticsearch.geo
Interface SimplificationErrorCalculator
- All Known Implementing Classes:
SimplificationErrorCalculator.CartesianHeightAndBackpathDistanceCalculator,SimplificationErrorCalculator.CartesianTriangleAreaCalculator,SimplificationErrorCalculator.SphericalHeightAndBackpathDistanceCalculator,SimplificationErrorCalculator.TriangleAreaCalculator,SimplificationErrorCalculator.TriangleHeightCalculator
public interface SimplificationErrorCalculator
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classEstimate the error as the height of the point above the base, but including support for back-paths in the sense that of the point to be removed is father from either end than the height, we take that distance instead.static classCalculate the triangle area using cartesian coordinates as described at Area of a trianglestatic final recordThis record captures a point defined using a 3D vector (x, y, z)static interfacestatic final recordThis 3D rotation matrix allows for rotating 3D vectors (eg.static classEstimate the error as the height of the point above the base, but including support for back-paths in the sense that of the point to be removed is father from either end than the height, we take that distance instead.static classCalculate the triangle area using geographic coordinates and Herons formula (side lengths) as described at Area of a trianglestatic classCalculate the triangle area using geographic coordinates and Herons formula (side lengths) as described at Area of a triangle, but scale the area down by the inverse of the length of the base (left-right), which estimates the height of the triangle. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimplificationErrorCalculatorstatic final SimplificationErrorCalculatorstatic final SimplificationErrorCalculatorstatic final SimplificationErrorCalculatorstatic final SimplificationErrorCalculator -
Method Summary
Modifier and TypeMethodDescriptiondoublecalculateError(SimplificationErrorCalculator.PointLike left, SimplificationErrorCalculator.PointLike middle, SimplificationErrorCalculator.PointLike right)
-
Field Details
-
CARTESIAN_TRIANGLE_AREA
-
TRIANGLE_AREA
-
TRIANGLE_HEIGHT
-
HEIGHT_AND_BACKPATH_DISTANCE
-
SPHERICAL_HEIGHT_AND_BACKPATH_DISTANCE
-
-
Method Details
-
calculateError
double calculateError(SimplificationErrorCalculator.PointLike left, SimplificationErrorCalculator.PointLike middle, SimplificationErrorCalculator.PointLike right) -
byName
-