|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.data.synthetic.bymodel.GeneratorStatic
public class GeneratorStatic
Class for static clusters, that is an implementation of GeneratorInterface that will return only a given set of points.
Field Summary | |
---|---|
String |
name
Cluster name |
LinkedList<Vector> |
points
Cluster points |
Constructor Summary | |
---|---|
GeneratorStatic(String name,
LinkedList<Vector> points)
Construct generator using given name and points |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public String name
public LinkedList<Vector> points
Constructor Detail |
---|
public GeneratorStatic(String name, LinkedList<Vector> points)
name
- Cluster namepoints
- Cluster pointsMethod Detail |
---|
public List<Vector> generate(int count)
generate
in interface GeneratorInterface
count
- parameter is ignored.
public double getDensity(Vector p)
getDensity
in interface GeneratorInterface
p
- vector
public 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.
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |