Overview | Package | Class | Tree | Deprecated | Index | Help | Weka's home
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## weka.classifiers.meta.generators
Class UniformDataGenerator

    java.lang.Object
      weka.classifiers.meta.generators.Generator
          weka.classifiers.meta.generators.RandomizableGenerator
              weka.classifiers.meta.generators.RandomizableRangedGenerator
                  weka.classifiers.meta.generators.UniformDataGenerator

All Implemented Interfaces:
  java.io.Serializable, NumericAttributeGenerator, Ranged, OptionHandler

    public class UniformDataGenerator

extends RandomizableRangedGenerator
implements NumericAttributeGenerator

A uniform artificial data generator.
This generator uses a uniform data model - all values have the same probability, and generated values must fall within the range given to the generator.

Valid options are:

     -D
      If set, generator is run in debug mode and
      may output additional info to the console

     -S <seed>
      Sets the seed of the random number generator of the generator (default: 1)

     -L <num>
      Sets the lower range of the generator
      (default: 0)

     -U <num>
      Sets the upper range of the generator
      (default: 1)

Version:
  $Revision: 5861 $
Author:
  Kathryn Hempstalk (kah18 at cs.waikato.ac.nz)
See Also:
  Serialized Form

Constructor Summary
`UniformDataGenerator()`

Method Summary
`double` | `generate()` Generates a value that falls under this distribution.
`double` | `getLogProbabilityOf(double somedata)` Gets the (natural) log of the probability of a given value.
`double` | `getProbabilityOf(double somedata)` Gets the probability that a value falls under this distribution.
`java.lang.String` | `globalInfo()` Returns a string describing this class' ability.

Methods inherited from class weka.classifiers.meta.generators.RandomizableRangedGenerator
`getLowerRange, getOptions, getUpperRange, listOptions, lowerRangeTipText, setLowerRange, setOptions, setUpperRange, upperRangeTipText`

Methods inherited from class weka.classifiers.meta.generators.RandomizableGenerator
`getSeed, seedTipText, setSeed`

Methods inherited from class weka.classifiers.meta.generators.Generator
`copy, debugTipText, forName, getDebug, setDebug`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### UniformDataGenerator

    public UniformDataGenerator()

Method Detail

### globalInfo

    public java.lang.String globalInfo()

  Returns a string describing this class' ability.

  Specified by:
    `globalInfo` in class `Generator`
  Returns:
    A description of the class.

### generate

    public double generate()

  Generates a value that falls under this distribution.

  Specified by:
    `generate` in class `Generator`
  Returns:
    A generated value.

### getProbabilityOf

    public double getProbabilityOf(double somedata)

  Gets the probability that a value falls under this distribution.

  Specified by:
    `getProbabilityOf` in class `Generator`
  Parameters:
    `somedata` - The value to get the probability of.
  Returns:
    The probability of the given value.

### getLogProbabilityOf

    public double getLogProbabilityOf(double somedata)

  Gets the (natural) log of the probability of a given value.

  Specified by:
    `getLogProbabilityOf` in class `Generator`
  Parameters:
    `somedata` - The value to get the log probability of.
  Returns:
    The (natural) log of the probability.

Overview | Package | Class | Tree | Deprecated | Index | Help | Weka's home
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD