public class GeneratorStatic extends Object implements GeneratorInterface
Modifier and Type | Field and Description |
---|---|
String |
name
Cluster name
|
LinkedList<Vector> |
points
Cluster points
|
Constructor and Description |
---|
GeneratorStatic(String name,
LinkedList<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 density at a given coordinate.
|
int |
getDim()
Get cluster dimensionality
|
int |
getDiscarded()
Get number of discarded points
|
String |
getName()
Get cluster name
|
List<Vector> |
getPoints()
Get cluster points
|
int |
getSize()
Get cluster size
|
void |
setDiscarded(int discarded)
Notify cluster of discarded points.
|
public String name
public LinkedList<Vector> points
public GeneratorStatic(String name, LinkedList<Vector> points)
name
- Cluster namepoints
- Cluster pointspublic List<Vector> generate(int count)
generate
in interface GeneratorInterface
count
- parameter is ignored.public double getDensity(Vector p)
getDensity
in interface GeneratorInterface
p
- vectorpublic int getDim()
getDim
in interface GeneratorInterface
public int getDiscarded()
public String getName()
getName
in interface GeneratorInterface
public List<Vector> getPoints()
getPoints
in interface GeneratorInterface
public int getSize()
getSize
in interface GeneratorInterface
public void setDiscarded(int discarded) throws UnableToComplyException
discarded
- parameter not supported.UnableToComplyException
- always thrown, since the static generator doesn't supprot discards.