Package elki.data.synthetic.bymodel
Interface GeneratorInterface
-
- All Known Subinterfaces:
GeneratorInterfaceDynamic
- All Known Implementing Classes:
GeneratorSingleCluster
,GeneratorStatic
public interface GeneratorInterface
Interface for cluster generators- Since:
- 0.2
- Author:
- Erich Schubert
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double[]
computeMean()
Get the cluster mean vector.java.util.List<double[]>
generate(int count)
Generate a specified number of pointsdouble
getDensity(double[] p)
Get the density of the given vectorint
getDim()
Get dimensionality of generated datajava.lang.String
getName()
Get cluster nameint
getSize()
Get number of points to be generated by this generator.Model
makeModel()
Make a cluster model for this cluster.
-
-
-
Method Detail
-
getSize
int getSize()
Get number of points to be generated by this generator.- Returns:
- cluster size
-
getDim
int getDim()
Get dimensionality of generated data- Returns:
- dimensionality
-
generate
java.util.List<double[]> generate(int count)
Generate a specified number of points- Parameters:
count
- Number of points to generate- Returns:
- List of generated points
-
getDensity
double getDensity(double[] p)
Get the density of the given vector- Parameters:
p
- vector- Returns:
- density
-
getName
java.lang.String getName()
Get cluster name- Returns:
- cluster name
-
makeModel
Model makeModel()
Make a cluster model for this cluster.- Returns:
- Cluster model
-
computeMean
double[] computeMean()
Get the cluster mean vector.- Returns:
- Cluster mean, or
null
.
-
-