|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hermit.geometry.generator.NuclearGenerator
public class NuclearGenerator
A data generator which generates clustered random points.
Constructor Summary | |
---|---|
NuclearGenerator(int nclusters)
Create a clustering data generator. |
Method Summary | |
---|---|
Point[] |
createPoints(Region region,
int npoints)
Create a set of data points within the given region. |
Point[] |
getReferencePoints()
Get reference points, if any, associated with the most recently generated data set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NuclearGenerator(int nclusters)
nclusters
- The desired number of clusters in each generated
data set.Method Detail |
---|
public Point[] createPoints(Region region, int npoints)
createPoints
in interface Generator
region
- The region of the plane in which the points
must lie.npoints
- The desired number of points.
public Point[] getReferencePoints()
getReferencePoints
in interface Generator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |