|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.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 points| Method Detail |
|---|
public List<Vector> generate(int count)
generate in interface GeneratorInterfacecount - parameter is ignored.
public double getDensity(Vector p)
getDensity in interface GeneratorInterfacep - vector
public int getDim()
getDim in interface GeneratorInterfacepublic int getDiscarded()
public String getName()
getName in interface GeneratorInterfacepublic List<Vector> getPoints()
getPoints in interface GeneratorInterfacepublic 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 | |||||||||||