|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.classifiers.meta.generators.Generator
weka.classifiers.meta.generators.RandomizableGenerator
weka.classifiers.meta.generators.DiscreteUniformGenerator
public class DiscreteUniformGenerator
An artificial data generator that uses discrete buckets for values.
In this discrete uniform generator, all buckets are given the same probability, regardless of how many values fall into each bucket. This is not to be confused with the discrete generator which gives every bucket a probability based on how full the bucket is.
-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)
DiscreteGenerator
,
Serialized FormConstructor Summary | |
---|---|
DiscreteUniformGenerator()
|
Method Summary | |
---|---|
void |
buildGenerator(Instances someinstances)
Builds the generator with a given set of instances. |
double |
generate()
Generates a value that falls under this distribution. |
Capabilities |
getCapabilities()
Returns the Capabilities of this object |
double |
getLogProbabilityOf(double valuex)
Gets the (natural) log of the probability of a given value. |
double |
getProbabilityOf(double valuex)
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.RandomizableGenerator |
---|
getOptions, getSeed, listOptions, seedTipText, setOptions, 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 |
---|
public DiscreteUniformGenerator()
Method Detail |
---|
public java.lang.String globalInfo()
globalInfo
in class Generator
public Capabilities getCapabilities()
getCapabilities
in interface CapabilitiesHandler
Capabilities
public void buildGenerator(Instances someinstances) throws java.lang.Exception
buildGenerator
in interface InstanceHandler
someinstances
- The instances that will be used to
build up the probabilities for this generator.
java.lang.Exception
- if data cannot be processedpublic double generate()
generate
in class Generator
public double getProbabilityOf(double valuex)
getProbabilityOf
in class Generator
valuex
- The value to get the probability of.
public double getLogProbabilityOf(double valuex)
getLogProbabilityOf
in class Generator
valuex
- The value to get the log probability of.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |