|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.tools.math.distribution.DiscreteDistribution
public class DiscreteDistribution
The distribution for a discrete variable.
| Constructor Summary | |
|---|---|
DiscreteDistribution(java.lang.String attributeName,
double[] probabilities,
java.lang.String[] valueNames)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getAttributeName()
Returns the name of the attribute the distribution belongs to. |
int |
getNumberOfParameters()
This should return the number of parameters defining this distribution |
java.lang.String |
getParameterName(int index)
This method should return the name of the i-th parameter |
double |
getParameterValue(int index)
This method should return the value of the i-th parameter |
double |
getProbability(double value)
This method returns the density of the given distribution at the specified value. |
java.lang.String[] |
getValueNames()
|
java.util.ArrayList<java.lang.Double> |
getValues()
This method returns a collection of all nominal attribute values. |
boolean |
isContinuous()
|
boolean |
isDiscrete()
|
java.lang.String |
mapValue(double value)
this method should return a string representation of the given value. |
java.lang.String |
toString()
Should return an textual representation of the distribution. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DiscreteDistribution(java.lang.String attributeName,
double[] probabilities,
java.lang.String[] valueNames)
| Method Detail |
|---|
public final boolean isDiscrete()
isDiscrete in interface Distributionpublic final boolean isContinuous()
isContinuous in interface Distributionpublic double getProbability(double value)
Distribution
getProbability in interface Distributionvalue - the value which density shall be returnedpublic java.lang.String getAttributeName()
getAttributeName in interface Distributionpublic java.util.ArrayList<java.lang.Double> getValues()
public java.lang.String mapValue(double value)
Distribution
mapValue in interface Distributionpublic java.lang.String toString()
Distribution
toString in interface DistributiontoString in class java.lang.Objectpublic int getNumberOfParameters()
Distribution
getNumberOfParameters in interface Distributionpublic java.lang.String getParameterName(int index)
Distribution
getParameterName in interface Distributionpublic double getParameterValue(int index)
Distribution
getParameterValue in interface Distributionpublic java.lang.String[] getValueNames()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||