public class GeneratorStatic extends Object implements GeneratorInterface
Modifier and Type | Field and Description |
---|---|
String |
name
Cluster name
|
List<Vector> |
points
Cluster points
|
Constructor and Description |
---|
GeneratorStatic(String name,
List<Vector> points)
Construct generator using given name and points
|
Modifier and Type | Method and Description |
---|---|
List<Vector> |
generate(int count)
"Generate" new cluster points.
|
double |
getDensity(Vector p)
Get the density of the given vector
|
int |
getDim()
Get dimensionality of generated data
|
String |
getName()
Get cluster name
|
int |
getSize()
Get number of points to be generated by this generator.
|
Model |
makeModel()
Make a cluster model for this cluster.
|
public List<Vector> generate(int count)
generate
in interface GeneratorInterface
count
- parameter is ignored.public double getDensity(Vector p)
GeneratorInterface
getDensity
in interface GeneratorInterface
p
- vectorpublic int getDim()
GeneratorInterface
getDim
in interface GeneratorInterface
public String getName()
GeneratorInterface
getName
in interface GeneratorInterface
public int getSize()
GeneratorInterface
getSize
in interface GeneratorInterface
public Model makeModel()
GeneratorInterface
makeModel
in interface GeneratorInterface