类 MexicanHat
java.lang.Object
weka.datagenerators.DataGenerator
weka.datagenerators.RegressionGenerator
weka.datagenerators.classifiers.regression.MexicanHat
- 所有已实现的接口:
Serializable
,OptionHandler
,Randomizable
,RevisionHandler
- 直接已知子类:
Expression
A data generator for the simple 'Mexian Hat' function:
y = sin|x| / |x|
In addition to this simple function, the amplitude can be changed and gaussian noise can be added. Valid options are:
y = sin|x| / |x|
In addition to this simple function, the amplitude can be changed and gaussian noise can be added. Valid options are:
-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).
- 版本:
- $Revision: 1.4 $
- 作者:
- FracPete (fracpete at waikato dot ac dot nz)
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Returns the tip text for this propertyInitializes the format for the dataset produced.Generates one example of the dataset.Generates all examples of the dataset.Generates a comment string that documentats the data generator.Generates a comment string that documentates the data generator.double
Gets the amplitude multiplier.double
Gets the upper boundary for the range of xdouble
Gets the lower boundary for the range of xdouble
Gets the gaussian noise rate.double
Gets the noise varianceString[]
Gets the current settings of the datagenerator BIRCHCluster.Returns the revision string.boolean
Return if single mode is set for the given data generator mode depends on option setting and or generator type.Returns a string describing this data generator.Returns an enumeration describing the available options.static void
Main method for testing this class.Returns the tip text for this propertyReturns the tip text for this propertyReturns the tip text for this propertyReturns the tip text for this propertyvoid
setAmplitude
(double value) Sets the amplitude multiplier.void
setMaxRange
(double value) Sets the upper boundary for the range of xvoid
setMinRange
(double value) Sets the lower boundary for the range of xvoid
setNoiseRate
(double value) Sets the gaussian noise rate.void
setNoiseVariance
(double value) Sets the noise variancevoid
setOptions
(String[] options) Parses a list of options for this object.从类继承的方法 weka.datagenerators.RegressionGenerator
getNumExamples, numExamplesTipText, setNumExamples
从类继承的方法 weka.datagenerators.DataGenerator
debugTipText, defaultOutput, formatTipText, getDatasetFormat, getDebug, getNumExamplesAct, getOutput, getRandom, getRelationName, getSeed, makeData, outputTipText, randomTipText, relationNameTipText, seedTipText, setDatasetFormat, setDebug, setOutput, setRandom, setRelationName, setSeed
-
构造器详细资料
-
MexicanHat
public MexicanHat()initializes the generator
-
-
方法详细资料
-
globalInfo
Returns a string describing this data generator.- 返回:
- a description of the data generator suitable for displaying in the explorer/experimenter gui
-
listOptions
Returns an enumeration describing the available options.- 指定者:
listOptions
在接口中OptionHandler
- 覆盖:
listOptions
在类中RegressionGenerator
- 返回:
- an enumeration of all the available options
-
setOptions
Parses a list of options for this object. Valid options are:-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
在接口中OptionHandler
- 覆盖:
setOptions
在类中RegressionGenerator
- 参数:
options
- the list of options as an array of strings- 抛出:
Exception
- if an option is not supported
-
getOptions
Gets the current settings of the datagenerator BIRCHCluster.- 指定者:
getOptions
在接口中OptionHandler
- 覆盖:
getOptions
在类中RegressionGenerator
- 返回:
- an array of strings suitable for passing to setOptions
- 另请参阅:
-
DataGenerator.removeBlacklist(String[])
-
getAmplitude
public double getAmplitude()Gets the amplitude multiplier.- 返回:
- the amplitude multiplier
-
setAmplitude
public void setAmplitude(double value) Sets the amplitude multiplier.- 参数:
value
- the amplitude multiplier
-
amplitudeTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setMinRange
public void setMinRange(double value) Sets the lower boundary for the range of x- 参数:
value
- the lower boundary
-
getMinRange
public double getMinRange()Gets the lower boundary for the range of x- 返回:
- the lower boundary for the range of x
-
minRangeTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setMaxRange
public void setMaxRange(double value) Sets the upper boundary for the range of x- 参数:
value
- the upper boundary
-
getMaxRange
public double getMaxRange()Gets the upper boundary for the range of x- 返回:
- the upper boundary for the range of x
-
maxRangeTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getNoiseRate
public double getNoiseRate()Gets the gaussian noise rate.- 返回:
- the gaussian noise rate
-
setNoiseRate
public void setNoiseRate(double value) Sets the gaussian noise rate.- 参数:
value
- the gaussian noise rate
-
noiseRateTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getNoiseVariance
public double getNoiseVariance()Gets the noise variance- 返回:
- the noise variance
-
setNoiseVariance
public void setNoiseVariance(double value) Sets the noise variance- 参数:
value
- the noise variance
-
noiseVarianceTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getSingleModeFlag
Return if single mode is set for the given data generator mode depends on option setting and or generator type.- 指定者:
getSingleModeFlag
在类中DataGenerator
- 返回:
- single mode flag
- 抛出:
Exception
- if mode is not set yet
-
defineDataFormat
Initializes the format for the dataset produced. Must be called before the generateExample or generateExamples methods are used. Re-initializes the random number generator with the given seed.- 覆盖:
defineDataFormat
在类中DataGenerator
- 返回:
- the format for the dataset
- 抛出:
Exception
- if the generating of the format failed- 另请参阅:
-
generateExample
Generates one example of the dataset.- 指定者:
generateExample
在类中DataGenerator
- 返回:
- the generated example
- 抛出:
Exception
- if the format of the dataset is not yet definedException
- if the generator only works with generateExamples which means in non single mode
-
generateExamples
Generates all examples of the dataset. Re-initializes the random number generator with the given seed, before generating instances.- 指定者:
generateExamples
在类中DataGenerator
- 返回:
- the generated dataset
- 抛出:
Exception
- if the format of the dataset is not yet definedException
- if the generator only works with generateExample, which means in single mode- 另请参阅:
-
generateStart
Generates a comment string that documentates the data generator. By default this string is added at the beginning of the produced output as ARFF file type, next after the options.- 指定者:
generateStart
在类中DataGenerator
- 返回:
- string contains info about the generated rules
-
generateFinished
Generates a comment string that documentats the data generator. By default this string is added at the end of theproduces output as ARFF file type.- 指定者:
generateFinished
在类中DataGenerator
- 返回:
- string contains info about the generated rules
- 抛出:
Exception
- if the generating of the documentaion fails
-
getRevision
Returns the revision string.- 返回:
- the revision
-
main
Main method for testing this class.- 参数:
args
- should contain arguments for the data producer:
-