public class MexicanHat extends RegressionGenerator
-h Prints this help.
-o <file> The name of the output file, otherwise the generated data is printed to stdout.
-r <name> The name of the relation.
-d Whether to print debug informations.
-S The seed for random function (default 1)
-n <num> The number of examples to generate (default 100)
-A <num> The amplitude multiplier (default 1.0).
-R <num>..<num> The range x is randomly drawn from (default -10.0..10.0).
-N <num> The noise rate (default 0.0).
-V <num> The noise variance (default 1.0).
Constructor and Description |
---|
MexicanHat()
initializes the generator
|
Modifier and Type | Method and Description |
---|---|
String |
amplitudeTipText()
Returns the tip text for this property
|
Instances |
defineDataFormat()
Initializes the format for the dataset produced.
|
Instance |
generateExample()
Generates one example of the dataset.
|
Instances |
generateExamples()
Generates all examples of the dataset.
|
String |
generateFinished()
Generates a comment string that documentats the data generator.
|
String |
generateStart()
Generates a comment string that documentates the data generator.
|
double |
getAmplitude()
Gets the amplitude multiplier.
|
double |
getMaxRange()
Gets the upper boundary for the range of x
|
double |
getMinRange()
Gets the lower boundary for the range of x
|
double |
getNoiseRate()
Gets the gaussian noise rate.
|
double |
getNoiseVariance()
Gets the noise variance
|
String[] |
getOptions()
Gets the current settings of the datagenerator BIRCHCluster.
|
String |
getRevision()
Returns the revision string.
|
boolean |
getSingleModeFlag()
Return if single mode is set for the given data generator
mode depends on option setting and or generator type.
|
String |
globalInfo()
Returns a string describing this data generator.
|
Enumeration |
listOptions()
Returns an enumeration describing the available options.
|
static void |
main(String[] args)
Main method for testing this class.
|
String |
maxRangeTipText()
Returns the tip text for this property
|
String |
minRangeTipText()
Returns the tip text for this property
|
String |
noiseRateTipText()
Returns the tip text for this property
|
String |
noiseVarianceTipText()
Returns the tip text for this property
|
void |
setAmplitude(double value)
Sets the amplitude multiplier.
|
void |
setMaxRange(double value)
Sets the upper boundary for the range of x
|
void |
setMinRange(double value)
Sets the lower boundary for the range of x
|
void |
setNoiseRate(double value)
Sets the gaussian noise rate.
|
void |
setNoiseVariance(double value)
Sets the noise variance
|
void |
setOptions(String[] options)
Parses a list of options for this object.
|
getNumExamples, numExamplesTipText, setNumExamples
debugTipText, defaultOutput, formatTipText, getDatasetFormat, getDebug, getNumExamplesAct, getOutput, getRandom, getRelationName, getSeed, makeData, outputTipText, randomTipText, relationNameTipText, seedTipText, setDatasetFormat, setDebug, setOutput, setRandom, setRelationName, setSeed
public String globalInfo()
public Enumeration listOptions()
listOptions
in interface OptionHandler
listOptions
in class RegressionGenerator
public void setOptions(String[] options) throws Exception
-h Prints this help.
-o <file> The name of the output file, otherwise the generated data is printed to stdout.
-r <name> The name of the relation.
-d Whether to print debug informations.
-S The seed for random function (default 1)
-n <num> The number of examples to generate (default 100)
-A <num> The amplitude multiplier (default 1.0).
-R <num>..<num> The range x is randomly drawn from (default -10.0..10.0).
-N <num> The noise rate (default 0.0).
-V <num> The noise variance (default 1.0).
setOptions
in interface OptionHandler
setOptions
in class RegressionGenerator
options
- the list of options as an array of stringsException
- if an option is not supportedpublic String[] getOptions()
getOptions
in interface OptionHandler
getOptions
in class RegressionGenerator
DataGenerator.removeBlacklist(String[])
public double getAmplitude()
public void setAmplitude(double value)
value
- the amplitude multiplierpublic String amplitudeTipText()
public void setMinRange(double value)
value
- the lower boundarypublic double getMinRange()
public String minRangeTipText()
public void setMaxRange(double value)
value
- the upper boundarypublic double getMaxRange()
public String maxRangeTipText()
public double getNoiseRate()
public void setNoiseRate(double value)
value
- the gaussian noise ratepublic String noiseRateTipText()
public double getNoiseVariance()
public void setNoiseVariance(double value)
value
- the noise variancepublic String noiseVarianceTipText()
public boolean getSingleModeFlag() throws Exception
getSingleModeFlag
in class DataGenerator
Exception
- if mode is not set yetpublic Instances defineDataFormat() throws Exception
defineDataFormat
in class DataGenerator
Exception
- if the generating of the format failedDataGenerator.getSeed()
public Instance generateExample() throws Exception
generateExample
in class DataGenerator
Exception
- if the format of the dataset is not yet definedException
- if the generator only works with generateExamples
which means in non single modepublic Instances generateExamples() throws Exception
generateExamples
in class DataGenerator
Exception
- if the format of the dataset is not yet definedException
- if the generator only works with generateExample,
which means in single modeDataGenerator.getSeed()
public String generateStart()
generateStart
in class DataGenerator
public String generateFinished() throws Exception
generateFinished
in class DataGenerator
Exception
- if the generating of the documentaion failspublic String getRevision()
public static void main(String[] args)
args
- should contain arguments for the data producer:Copyright © 2019 University of Waikato, Hamilton, NZ. All rights reserved.