public abstract class Cluster extends AbstractMOAObject
Constructor and Description |
---|
Cluster() |
Modifier and Type | Method and Description |
---|---|
abstract double[] |
getCenter() |
protected void |
getClusterSpecificInfo(ArrayList<String> infoTitle,
ArrayList<String> infoValue) |
void |
getDescription(StringBuilder sb,
int i)
Returns a string representation of this object.
|
double |
getGroundTruth() |
double |
getId() |
abstract double |
getInclusionProbability(weka.core.Instance instance)
Returns the probability of the given point belonging to
this cluster.
|
String |
getInfo() |
String |
getMeasureValue(String measureKey) |
abstract double |
getWeight()
Returns the weight of this cluster, not neccessarily normalized.
|
boolean |
isGroundTruth() |
abstract weka.core.Instance |
sample(Random random)
Samples this cluster by returning a point from inside it.
|
void |
setGroundTruth(double truth) |
void |
setId(double id) |
void |
setMeasureValue(String measureKey,
double value) |
void |
setMeasureValue(String measureKey,
String value) |
copy, copy, measureByteSize, measureByteSize, toString
public abstract double[] getCenter()
public abstract double getWeight()
public abstract double getInclusionProbability(weka.core.Instance instance)
point
- public void getDescription(StringBuilder sb, int i)
MOAObject
AbstractMOAObject.toString
to give a string representation of the object.sb
- the stringbuilder to add the descriptioni
- the number of characters to indentpublic void setId(double id)
public double getId()
public boolean isGroundTruth()
public void setGroundTruth(double truth)
public double getGroundTruth()
public abstract weka.core.Instance sample(Random random)
random
- a random number sourcepublic void setMeasureValue(String measureKey, double value)
protected void getClusterSpecificInfo(ArrayList<String> infoTitle, ArrayList<String> infoValue)
public String getInfo()
Copyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.