public class Cluster
extends java.lang.Object
This class is a cluster C for the EventCovering method
Modifier and Type | Field and Description |
---|---|
java.util.Vector |
C
Vector that stores the representation of the cluster.
|
Constructor and Description |
---|
Cluster()
Creates a new instance of Cluster
|
Modifier and Type | Method and Description |
---|---|
void |
addInstance(Instance inst)
Adds one instance to the cluster (referencing it)
|
int |
getNumber()
Gets the number of this cluster
|
int |
getObserved(java.lang.String at,
int numat)
Returns the number of times a determined attribute value appears in the instances of this cluster
|
void |
setNumber(int index)
Set the number of this cluster
|
public void addInstance(Instance inst)
Adds one instance to the cluster (referencing it)
inst
- the instance to be addedpublic int getObserved(java.lang.String at, int numat)
Returns the number of times a determined attribute value appears in the instances of this cluster
at
- the attribute valuenumat
- the attribute indexpublic void setNumber(int index)
Set the number of this cluster
index
- the new indexpublic int getNumber()
Gets the number of this cluster