|
|||||||||
| Home >> All >> riso >> [ distributions overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
riso.distributions
Class Identity

java.lang.Objectriso.distributions.AbstractConditionalDistribution
riso.distributions.Identity
- All Implemented Interfaces:
- ConditionalDistribution, java.io.Serializable
- public class Identity
- extends AbstractConditionalDistribution
CODE BELOW SUPPORTS ONLY 1-DIMENSIONAL VARIABLES !!! SHOULD EXTEND. OH WELL !!!
| Field Summary |
| Fields inherited from class riso.distributions.AbstractConditionalDistribution |
associated_variable |
| Constructor Summary | |
Identity()
|
|
| Method Summary | |
java.lang.String |
format_string(java.lang.String leading_ws)
Create a description of this distribution model as a string. |
Distribution |
get_density(double[] c)
For a given value c of the parents, return a distribution
which represents p(x|C=c). |
int |
ndimensions_child()
Return the number of dimensions of the child variable. |
int |
ndimensions_parent()
Return the number of dimensions of the parent variables. |
double |
p(double[] x,
double[] c)
Compute the density at the point x. |
double[] |
random(double[] c)
Return an instance of a random variable from this distribution. |
| Methods inherited from class riso.distributions.AbstractConditionalDistribution |
clone, get_nstates, parse_string, pretty_input, pretty_output, set_variable, toString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
Identity
public Identity()
| Method Detail |
ndimensions_child
public int ndimensions_child()
- Description copied from interface:
ConditionalDistribution - Return the number of dimensions of the child variable.
ndimensions_parent
public int ndimensions_parent()
- Description copied from interface:
ConditionalDistribution - Return the number of dimensions of the parent variables.
If there is more than one parent, this is the sum of the dimensions
of the parent variables.
get_density
public Distribution get_density(double[] c) throws java.lang.Exception
- For a given value
cof the parents, return a distribution which representsp(x|C=c). Executingget_density(c). p(x)will yield the same result asp(x,c).
p
public double p(double[] x,
double[] c)
throws java.lang.Exception
- Compute the density at the point
x.
random
public double[] random(double[] c)
throws java.lang.Exception
- Return an instance of a random variable from this distribution.
format_string
public java.lang.String format_string(java.lang.String leading_ws) throws java.io.IOException
- Create a description of this distribution model as a string.
This method simply puts the classname into a string.
|
|||||||||
| Home >> All >> riso >> [ distributions overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC