|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.datagenerators.DataGenerator
weka.datagenerators.ClusterGenerator
public abstract class ClusterGenerator
Abstract class for cluster data generators.
Example usage as the main of a datagenerator called RandomGenerator:public static void main(String[] args) { try { DataGenerator.makeData(new RandomGenerator(), args); } catch (Exception e) { e.printStackTrace(); System.err.println(e.getMessage()); } }
Constructor Summary | |
---|---|
ClusterGenerator()
initializes the generator |
Method Summary | |
---|---|
java.lang.String |
booleanColsTipText()
Returns the tip text for this property |
java.lang.String |
classFlagTipText()
Returns the tip text for this property |
Range |
getBooleanCols()
returns the range of boolean attributes. |
boolean |
getClassFlag()
Gets the class flag. |
Range |
getNominalCols()
returns the range of nominal attributes |
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 |
listOptions()
Returns an enumeration describing the available options. |
java.lang.String |
nominalColsTipText()
Returns the tip text for this property |
java.lang.String |
numAttributesTipText()
Returns the tip text for this property |
void |
setBooleanCols(Range value)
Sets which attributes are boolean. |
void |
setBooleanIndices(java.lang.String rangeList)
Sets which attributes are boolean |
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 |
setNominalCols(Range value)
Sets which attributes are nominal. |
void |
setNominalIndices(java.lang.String rangeList)
Sets which attributes are nominal |
void |
setNumAttributes(int numAttributes)
Sets the number of attributes the dataset should have. |
void |
setOptions(java.lang.String[] options)
Sets the options. |
Methods inherited from class weka.datagenerators.DataGenerator |
---|
debugTipText, defaultOutput, defineDataFormat, formatTipText, generateExample, generateExamples, generateFinished, generateStart, getDatasetFormat, getDebug, getNumExamplesAct, getOutput, getRandom, getRelationName, getSeed, getSingleModeFlag, makeData, outputTipText, randomTipText, relationNameTipText, seedTipText, setDatasetFormat, setDebug, setOutput, setRandom, setRelationName, setSeed |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface weka.core.RevisionHandler |
---|
getRevision |
Constructor Detail |
---|
public ClusterGenerator()
Method Detail |
---|
public java.util.Enumeration 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 options
java.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()
public void setBooleanIndices(java.lang.String rangeList)
rangeList
- a string representing the list of attributes. Since
the string will typically come from a user, attributes are indexed from
1. java.lang.IllegalArgumentException
- if an invalid range list is suppliedpublic void setBooleanCols(Range value)
value
- the range to usepublic Range getBooleanCols()
public java.lang.String booleanColsTipText()
public void setNominalIndices(java.lang.String rangeList)
rangeList
- a string representing the list of attributes. Since
the string will typically come from a user, attributes are indexed from
1. java.lang.IllegalArgumentException
- if an invalid range list is suppliedpublic void setNominalCols(Range value)
value
- the range to usepublic Range getNominalCols()
public java.lang.String nominalColsTipText()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |