public abstract class ClusterGenerator extends DataGenerator
public static void main(String[] args) {
try {
DataGenerator.makeData(new RandomGenerator(), args);
} catch (Exception e) {
e.printStackTrace();
System.err.println(e.getMessage());
}
}
| Constructor and Description |
|---|
ClusterGenerator()
initializes the generator
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
classFlagTipText()
Returns the tip text for this property
|
boolean |
getClassFlag()
Gets the class flag.
|
int |
getNumAttributes()
Gets the number of attributes that should be produced.
|
java.lang.String[] |
getOptions()
Gets the current settings of the classifier.
|
java.util.Enumeration<Option> |
listOptions()
Returns an enumeration describing the available options.
|
java.lang.String |
numAttributesTipText()
Returns the tip text for this property
|
void |
setClassFlag(boolean classFlag)
Sets the class flag, if class flag is set, the cluster is listed as class
atrribute in an extra attribute.
|
void |
setNumAttributes(int numAttributes)
Sets the number of attributes the dataset should have.
|
void |
setOptions(java.lang.String[] options)
Sets the options.
|
debugTipText, defaultOutput, defineDataFormat, enumToVector, formatTipText, generateExample, generateExamples, generateFinished, generateStart, getDatasetFormat, getDebug, getEpilogue, getNumExamplesAct, getOutput, getPrologue, getRandom, getRelationName, getSeed, getSingleModeFlag, makeData, outputTipText, randomTipText, relationNameTipText, runDataGenerator, seedTipText, setDatasetFormat, setDebug, setOutput, setRandom, setRelationName, setSeedequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmakeCopygetRevisionpublic java.util.Enumeration<Option> listOptions()
listOptions in interface OptionHandlerlistOptions in class DataGeneratorpublic void setOptions(java.lang.String[] options)
throws java.lang.Exception
setOptions in interface OptionHandlersetOptions in class DataGeneratoroptions - the optionsjava.lang.Exception - if invalid optionpublic java.lang.String[] getOptions()
getOptions in interface OptionHandlergetOptions in class DataGeneratorDataGenerator.removeBlacklist(String[])public void setNumAttributes(int numAttributes)
numAttributes - the new number of attributespublic int getNumAttributes()
public java.lang.String numAttributesTipText()
public void setClassFlag(boolean classFlag)
classFlag - the new class flagpublic boolean getClassFlag()
public java.lang.String classFlagTipText()