|
||||||||||
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 Distribution
public final boolean isContinuous()
isContinuous
in interface Distribution
public double getProbability(double value)
Distribution
getProbability
in interface Distribution
value
- the value which density shall be returnedpublic java.lang.String getAttributeName()
getAttributeName
in interface Distribution
public java.util.ArrayList<java.lang.Double> getValues()
public java.lang.String mapValue(double value)
Distribution
mapValue
in interface Distribution
public java.lang.String toString()
Distribution
toString
in interface Distribution
toString
in class java.lang.Object
public int getNumberOfParameters()
Distribution
getNumberOfParameters
in interface Distribution
public java.lang.String getParameterName(int index)
Distribution
getParameterName
in interface Distribution
public double getParameterValue(int index)
Distribution
getParameterValue
in interface Distribution
public java.lang.String[] getValueNames()
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |