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

java.lang.Objectriso.distributions.AbstractDistribution
riso.distributions.DistributionMin
- All Implemented Interfaces:
- ConditionalDistribution, Distribution, java.io.Serializable
- public class DistributionMin
- extends AbstractDistribution
An instance of this class represents the distribution of the minimum of a set of variables with any distributions.
| Field Summary | |
(package private) Distribution[] |
p
The list of distributions represented by this distribution. |
| Fields inherited from class riso.distributions.AbstractDistribution |
associated_variable |
| Constructor Summary | |
DistributionMin(Distribution[] p)
Constructs a DistributionMin given the specified list of distributions. |
|
| Method Summary | |
double |
cdf(double x)
Compute cumulative distribution function for this distribution. |
java.lang.Object |
clone()
Return a shallow copy of this object. |
double[] |
effective_support(double epsilon)
Returns an interval which contains almost all the mass of this distribution; uses a numerical search. |
double |
expected_value()
Returns the expected value of this distribution. |
java.lang.String |
format_string(java.lang.String leading_ws)
Formats a string representation of this distribution. |
double |
log_prior()
Computes the log of the prior probability of the parameters of this distribution, assuming some prior distribution has been established. |
int |
ndimensions()
Returns the number of dimensions in which this distribution lives. |
double |
p(double[] x)
Computes the density at the point x. |
void |
pretty_input(riso.general.SmarterTokenizer st)
Read an instance of this distribution from an input stream. |
double[] |
random()
Return an instance of a random variable from this distribution. |
double |
sqrt_variance()
Returns the square root of the variance of this distribution. |
double |
update(double[][] x,
double[] responsibility,
int niter_max,
double stopping_criterion)
Use data to modify the parameters of the distribution. |
| Methods inherited from class riso.distributions.AbstractDistribution |
get_density, get_nstates, initial_mix, log_p, ndimensions_child, ndimensions_parent, p, parse_string, pretty_output, random, set_variable, toString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
p
Distribution[] p
- The list of distributions represented by this distribution.
| Constructor Detail |
DistributionMin
public DistributionMin(Distribution[] p)
- Constructs a DistributionMin given the specified list
of distributions. p is cloned shallowly.
| Method Detail |
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
- Return a shallow copy of this object. References (not objects) are copied.
- Specified by:
clonein interfaceConditionalDistribution- Overrides:
clonein classAbstractDistribution
ndimensions
public int ndimensions()
- Returns the number of dimensions in which this distribution lives.
Always returns 1.
- Specified by:
ndimensionsin interfaceDistribution- Overrides:
ndimensionsin classAbstractDistribution
cdf
public double cdf(double x)
throws java.lang.Exception
- Compute cumulative distribution function for this distribution.
This is just the product of the individual complementary cdf's.
- Specified by:
cdfin interfaceDistribution- Overrides:
cdfin classAbstractDistribution
p
public double p(double[] x)
throws java.lang.Exception
- Computes the density at the point
x.
log_prior
public double log_prior()
throws java.lang.Exception
- Computes the log of the prior probability of the parameters of
this distribution, assuming some prior distribution has been
established. This may not be meaningful for all distributions.
- Specified by:
log_priorin interfaceDistribution- Overrides:
log_priorin classAbstractDistribution
random
public double[] random()
throws java.lang.Exception
- Return an instance of a random variable from this distribution.
This method is not implemented.
- Specified by:
randomin interfaceDistribution- Overrides:
randomin classAbstractDistribution
update
public double update(double[][] x,
double[] responsibility,
int niter_max,
double stopping_criterion)
throws java.lang.Exception
- Use data to modify the parameters of the distribution.
This method is not implemented.
- Specified by:
updatein interfaceDistribution- Overrides:
updatein classAbstractDistribution
expected_value
public double expected_value()
throws java.lang.Exception
- Returns the expected value of this distribution.
This method is not implemented.
- Specified by:
expected_valuein interfaceDistribution- Overrides:
expected_valuein classAbstractDistribution
sqrt_variance
public double sqrt_variance()
throws java.lang.Exception
- Returns the square root of the variance of this distribution.
This method is not implemented.
- Specified by:
sqrt_variancein interfaceDistribution- Overrides:
sqrt_variancein classAbstractDistribution
effective_support
public double[] effective_support(double epsilon)
throws java.lang.Exception
- Returns an interval which contains almost all the mass of this
distribution; uses a numerical search.
- Specified by:
effective_supportin interfaceDistribution- Overrides:
effective_supportin classAbstractDistribution
format_string
public java.lang.String format_string(java.lang.String leading_ws) throws java.io.IOException
- Formats a string representation of this distribution.
- Specified by:
format_stringin interfaceConditionalDistribution- Overrides:
format_stringin classAbstractDistribution
pretty_input
public void pretty_input(riso.general.SmarterTokenizer st) throws java.io.IOException
- Read an instance of this distribution from an input stream.
This is intended for input from a human-readable source; this is
different from object serialization.
- Overrides:
pretty_inputin classAbstractDistribution
|
|||||||||
| Home >> All >> riso >> [ distributions overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC