Documentation of 'javanpst.distributions.common.continuous.WeibullDistribution' Java class
WeibullDistribution
javanpst.distributions.common.continuous

Class WeibullDistribution

  • All Implemented Interfaces:
    Distribution


    public class WeibullDistribution
    extends java.lang.Object
    implements Distribution
    A Weibull distribution.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      double computeCumulativeProbability(double x)
      Computes cumulative probability at a given point of the Weibull distribution.
      double computeProbability(double x)
      Computes mass probability at a given point of the Weibull distribution.
      double getK()
      Gets the k parameter
      double getLambda()
      Gets the lambda parameter
      void setK(double value)
      Sets k K value must be positive
      void setLambda(double value)
      Sets lambda Lambda value must be positive
      java.lang.String toString()
      To String method.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • WeibullDistribution

        public WeibullDistribution()
        Default builder. Creates a Weibull distribution with parameters lambda = 1 and k = 1
      • WeibullDistribution

        public WeibullDistribution(double lambda,
                                   double k)
        Builder. Creates a Weibull distribution with specified lambda and k parameters Lambda and k must be positive
        Parameters:
        lambda - lambda parameter of the distribution
        k - k parameter of the distribution
      • WeibullDistribution

        public WeibullDistribution(WeibullDistribution old)
        Copy constructor Creates a copy of a given Laplace distribution
        Parameters:
        old - Laplace distribution to copy
    • Method Detail

      • setLambda

        public void setLambda(double value)
        Sets lambda Lambda value must be positive
        Parameters:
        value - lambda value
      • setK

        public void setK(double value)
        Sets k K value must be positive
        Parameters:
        value - k value
      • getLambda

        public double getLambda()
        Gets the lambda parameter
        Returns:
        value of lambda
      • getK

        public double getK()
        Gets the k parameter
        Returns:
        value of k
      • computeProbability

        public double computeProbability(double x)
        Computes mass probability at a given point of the Weibull distribution.
        Specified by:
        computeProbability in interface Distribution
        Parameters:
        x - point selected
        Returns:
        mass probability at 'x'
      • computeCumulativeProbability

        public double computeCumulativeProbability(double x)
        Computes cumulative probability at a given point of the Weibull distribution.
        Specified by:
        computeCumulativeProbability in interface Distribution
        Parameters:
        x - point selected
        Returns:
        cumulative probability at 'x'
      • toString

        public java.lang.String toString()
        To String method.
        Overrides:
        toString in class java.lang.Object
        Returns:
        string representation of the distribution

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.