Class CreateRandomShapeFunctions
java.lang.Object
org.locationtech.jtstest.function.CreateRandomShapeFunctions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Geometry
haltonPoints
(Geometry g, int nPts) static Geometry
haltonPoints57
(Geometry g, int nPts) static Geometry
haltonPointsWithBases
(Geometry g, int nPts, int basei, int basej) static Geometry
randomLineString
(Geometry g, int nPts) static Geometry
randomPoints
(Geometry g, int nPts) static Geometry
randomPointsInGrid
(Geometry g, int nPts) static Geometry
randomPointsInGridCircles
(Geometry g, int nPts) static Geometry
randomPointsInGridWithGutter
(Geometry g, int nPts, double gutterFraction) static Geometry
randomPointsInPolygon
(Geometry g, int nPts) static Geometry
randomPointsInTriangle
(Geometry g, int nPts) static Geometry
randomRadialPoints
(Geometry g, int nPts) static Geometry
randomRectilinearWalk
(Geometry g, int nPts) static Geometry
randomSegments
(Geometry g, int nPts) static Geometry
randomSegmentsInGrid
(Geometry g, int nPts) static Geometry
randomSegmentsRectilinear
(Geometry g, int nPts) static Geometry
robertsPoints
(Geometry geom, int nPts) Creates a set of quasi-random 2D points using the Roberts recurrences.
-
Constructor Details
-
CreateRandomShapeFunctions
public CreateRandomShapeFunctions()
-
-
Method Details
-
randomPointsInGrid
-
randomPointsInGridCircles
-
randomPointsInGridWithGutter
-
randomPoints
-
randomPointsInPolygon
-
randomPointsInTriangle
-
randomRadialPoints
-
haltonPoints
-
haltonPoints57
-
haltonPointsWithBases
-
robertsPoints
Creates a set of quasi-random 2D points using the Roberts recurrences. Roberts recurrences are based on the generalized Golden Ratio (for the 2D case, Phi2). They have excellent low-discrepancy characteristics. This mean they are non-periodic and have less clustering than random points or Halton points.- Parameters:
geom
-nPts
-- Returns:
-
randomSegments
-
randomSegmentsInGrid
-
randomSegmentsRectilinear
-
randomLineString
-
randomRectilinearWalk
-