Class Empirical

All Implemented Interfaces:
Distribution, StorableDistribution

public class Empirical extends AbstractDistribution implements Distribution
This is the Empirical distribution, which is constructed with data provided by the user.

Copyright (c) 2003
Politecnico di Milano - dipartimento di Elettronica e Informazione
Author:
Fabrizio Frontera - ffrontera@yahoo.it
  • Field Summary

    Fields inherited from class AbstractDistribution

    engine
  • Constructor Summary

    Constructors
    Constructor
    Description
    This is the constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    cdf(double x, Parameter p)
    This method is used to obtain from the distribution its cumulative distribution function evaluated where required by the user.
    double
    This method is used to obtain from the distribution the next number distributed according to the distribution parameter.
    double
    pdf(double x, Parameter p)
    This method is used to obtain from the distribution its probability distribution function evaluated where required by the user.
    double
    This method is used to obtain from the distribution the value of its own theoretic mean, which is is calculated from the data provided by the user (contained in the parameter p) as the sum of all the data value, divided by the number of data.
    double
    This method is used to obtain from the distribution the value of its own theoretic variance which is calculated from the data provided by the user (contained in the parameter p) as the sum of all the squares of the differences between each data value and the theoretic mean, divided by the number of data.

    Methods inherited from class AbstractDistribution

    setRandomEngine

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface Distribution

    setRandomEngine
  • Constructor Details

    • Empirical

      public Empirical()
      This is the constructor. It creates a new empirical distribution.
  • Method Details