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, setSeed
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
makeCopy
getRevision
public java.util.Enumeration<Option> listOptions()
listOptions
in interface OptionHandler
listOptions
in class DataGenerator
public void setOptions(java.lang.String[] options) throws java.lang.Exception
setOptions
in interface OptionHandler
setOptions
in class DataGenerator
options
- the optionsjava.lang.Exception
- if invalid optionpublic java.lang.String[] getOptions()
getOptions
in interface OptionHandler
getOptions
in class DataGenerator
DataGenerator.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()