org.apache.commons.math.distribution
Interface BetaDistribution

All Superinterfaces:
ContinuousDistribution, Distribution, HasDensity<Double>
All Known Implementing Classes:
BetaDistributionImpl

public interface BetaDistribution
extends ContinuousDistribution, HasDensity<Double>

Computes the cumulative, inverse cumulative and density functions for the beta distribuiton.

Since:
2.0
Version:
$Revision: 705239 $ $Date: 2008-10-16 09:32:32 -0400 (Thu, 16 Oct 2008) $
See Also:
Beta_distribution

Method Summary
 double density(Double x)
          Return the probability density for a particular point.
 double getAlpha()
          Access the shape parameter, alpha
 double getBeta()
          Access the shape parameter, beta
 void setAlpha(double alpha)
          Modify the shape parameter, alpha.
 void setBeta(double beta)
          Modify the shape parameter, beta.
 
Methods inherited from interface org.apache.commons.math.distribution.ContinuousDistribution
inverseCumulativeProbability
 
Methods inherited from interface org.apache.commons.math.distribution.Distribution
cumulativeProbability, cumulativeProbability
 

Method Detail

setAlpha

void setAlpha(double alpha)
Modify the shape parameter, alpha.

Parameters:
alpha - the new shape parameter.

getAlpha

double getAlpha()
Access the shape parameter, alpha

Returns:
alpha.

setBeta

void setBeta(double beta)
Modify the shape parameter, beta.

Parameters:
beta - the new scale parameter.

getBeta

double getBeta()
Access the shape parameter, beta

Returns:
beta.

density

double density(Double x)
               throws MathException
Return the probability density for a particular point.

Specified by:
density in interface HasDensity<Double>
Parameters:
x - The point at which the density should be computed.
Returns:
The pdf at point x.
Throws:
MathException - if probability density cannot be computed


Copyright (c) 2003-2010 Apache Software Foundation