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

java.lang.Objectriso.distributions.AbstractConditionalDistribution
riso.distributions.FunctionalRelation
riso.distributions.Ratio
- All Implemented Interfaces:
- ConditionalDistribution, java.io.Serializable
- public class Ratio
- extends FunctionalRelation
| Field Summary |
| Fields inherited from class riso.distributions.FunctionalRelation |
NGRID |
| Fields inherited from class riso.distributions.AbstractConditionalDistribution |
associated_variable |
| Constructor Summary | |
Ratio()
Do-nothing constructor for a ratio. |
|
| Method Summary | |
double[] |
dFdx(double[] c)
Returns a two-element array with components 1/c[1] and -c[0]/(c[1]*c[1]). |
double |
F(double[] c)
Returns c[0]/c[1]. |
int |
ndimensions_parent()
Return the number of dimensions of the parent variables, which is always 2. |
| Methods inherited from class riso.distributions.FunctionalRelation |
clone, component_roots, format_string, get_density, ndimensions_child, p, random |
| Methods inherited from class riso.distributions.AbstractConditionalDistribution |
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 |
Ratio
public Ratio()
- Do-nothing constructor for a ratio.
| Method Detail |
ndimensions_parent
public int ndimensions_parent()
- Return the number of dimensions of the parent variables, which is always 2.
F
public double F(double[] c)
- Returns c[0]/c[1].
- Specified by:
Fin classFunctionalRelation
dFdx
public double[] dFdx(double[] c)
- Returns a two-element array with components 1/c[1] and -c[0]/(c[1]*c[1]).
- Specified by:
dFdxin classFunctionalRelation
|
|||||||||
| Home >> All >> riso >> [ distributions overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC