Class CreateRandomShapeFunctions
- java.lang.Object
-
- org.locationtech.jtstest.function.CreateRandomShapeFunctions
-
public class CreateRandomShapeFunctions extends Object
-
-
Constructor Summary
Constructors Constructor Description CreateRandomShapeFunctions()
-
Method Summary
-
-
-
Method Detail
-
randomPointsInGridWithGutter
public static Geometry randomPointsInGridWithGutter(Geometry g, int nPts, double gutterFraction)
-
haltonPointsWithBases
public static Geometry haltonPointsWithBases(Geometry g, int nPts, int basei, int basej)
-
robertsPoints
public static Geometry robertsPoints(Geometry geom, int nPts)
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:
-
-