public class GeneratorStatic extends java.lang.Object implements GeneratorInterface
Modifier and Type | Field and Description |
---|---|
java.lang.String |
name
Cluster name
|
java.util.List<double[]> |
points
Cluster points
|
Constructor and Description |
---|
GeneratorStatic(java.lang.String name,
java.util.List<double[]> points)
Construct generator using given name and points
|
Modifier and Type | Method and Description |
---|---|
double[] |
computeMean()
Get the cluster mean vector.
|
java.util.List<double[]> |
generate(int count)
"Generate" new cluster points.
|
double |
getDensity(double[] p)
Get the density of the given vector
|
int |
getDim()
Get dimensionality of generated data
|
java.lang.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 java.lang.String name
public java.util.List<double[]> points
public GeneratorStatic(java.lang.String name, java.util.List<double[]> points)
name
- Cluster namepoints
- Cluster pointspublic java.util.List<double[]> generate(int count)
generate
in interface GeneratorInterface
count
- parameter is ignored.public double getDensity(double[] p)
GeneratorInterface
getDensity
in interface GeneratorInterface
p
- vectorpublic int getDim()
GeneratorInterface
getDim
in interface GeneratorInterface
public java.lang.String getName()
GeneratorInterface
getName
in interface GeneratorInterface
public int getSize()
GeneratorInterface
getSize
in interface GeneratorInterface
public Model makeModel()
GeneratorInterface
makeModel
in interface GeneratorInterface
public double[] computeMean()
GeneratorInterface
computeMean
in interface GeneratorInterface
null
.Copyright © 2019 ELKI Development Team. License information.