JMSLTM Numerical Library 6.0

com.imsl.stat
Interface ProbabilityDistribution

All Superinterfaces:
Distribution, Serializable
All Known Implementing Classes:
GammaDistribution, LogNormalDistribution, NormalDistribution, PoissonDistribution

public interface ProbabilityDistribution
extends Distribution, Serializable

Public interface for the user-supplied distribution function.


Method Summary
 double[] eval(double[] xData, Object[] parameters)
          Evaluation method for the user-supplied distribution function and parameters.
 double eval(double xData, Object[] parameters)
          Evaluation method for the user-supplied distribution function and parameters.
 Object[] getParameters()
          Returns the parameters used to evaluate the distribution
 
Methods inherited from interface com.imsl.stat.Distribution
eval
 

Method Detail

eval

double[] eval(double[] xData,
              Object[] parameters)
Evaluation method for the user-supplied distribution function and parameters.

Parameters:
xData - a double array containing the points the distribution function is to evaluate.
parameters - an Object array containing the probability distribution parameters to be used in evaluating xData. See method getParameters to obtain the distribution function parameters.
Returns:
a double array representing the distribution of xData

eval

double eval(double xData,
            Object[] parameters)
Evaluation method for the user-supplied distribution function and parameters.

Parameters:
xData - a double scalar value containing the point the distribution function is to evaluate.
parameters - an Object array containing the probability distribution parameters to be used in evaluating xData. See method getParameters to obtain the distribution function parameters.
Returns:
a double scalar value representing the distribution of xData

getParameters

Object[] getParameters()
Returns the parameters used to evaluate the distribution

Returns:
an Object array representing the parameters used to evaluate the distribution. This Object array can be retrieved after invoking the eval method with the following signature, double[] eval(double[] xData). This Object array can be used as input later with another set of data to the eval methods that require an Object array of distribution parameters as input.

JMSLTM Numerical Library 6.0

Copyright © 1970-2009 Visual Numerics, Inc.
Built September 1 2009.