Class CreateRandomShapeFunctions
java.lang.Object
org.locationtech.jtstest.function.CreateRandomShapeFunctions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GeometryhaltonPoints(Geometry g, int nPts) static GeometryhaltonPoints57(Geometry g, int nPts) static GeometryhaltonPointsWithBases(Geometry g, int nPts, int basei, int basej) static GeometryrandomLineString(Geometry g, int nPts) static GeometryrandomPoints(Geometry g, int nPts) static GeometryrandomPointsInGrid(Geometry g, int nPts) static GeometryrandomPointsInGridCircles(Geometry g, int nPts) static GeometryrandomPointsInGridWithGutter(Geometry g, int nPts, double gutterFraction) static GeometryrandomPointsInPolygon(Geometry g, int nPts) static GeometryrandomPointsInTriangle(Geometry g, int nPts) static GeometryrandomRadialPoints(Geometry g, int nPts) static GeometryrandomRectilinearWalk(Geometry g, int nPts) static GeometryrandomSegments(Geometry g, int nPts) static GeometryrandomSegmentsInGrid(Geometry g, int nPts) static GeometryrandomSegmentsRectilinear(Geometry g, int nPts) static GeometryrobertsPoints(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
-