public class BatchClustererEvent
extends java.util.EventObject
EventObject
,
Serialized FormConstructor and Description |
---|
BatchClustererEvent(java.lang.Object source,
Clusterer scheme,
DataSetEvent tstI,
int setNum,
int maxSetNum,
int testOrTrain)
Creates a new
BatchClustererEvent instance. |
Modifier and Type | Method and Description |
---|---|
Clusterer |
getClusterer()
Get the clusterer
|
int |
getMaxSetNumber()
Get the maximum set number (ie the total number of training
and testing sets in the series).
|
int |
getSetNumber()
Get the set number (ie which fold this is)
|
int |
getTestOrTrain()
Get whether the set of instances is a test or a training set
|
DataSetEvent |
getTestSet()
Get the training/test set
|
public BatchClustererEvent(java.lang.Object source, Clusterer scheme, DataSetEvent tstI, int setNum, int maxSetNum, int testOrTrain)
BatchClustererEvent
instance.source
- the source objectscheme
- a ClusterertstI
- the training/test instancessetNum
- the set number of the training/testinstancesmaxSetNum
- the last set number in the seriestestOrTrain
- 0 if the set is a test set, >0 if it is a training setpublic Clusterer getClusterer()
public DataSetEvent getTestSet()
public int getSetNumber()
public int getMaxSetNumber()
public int getTestOrTrain()