Package org.apache.commons.math.distribution

Examples of org.apache.commons.math.distribution.WeibullDistribution


  public static Object statWeibull(Object[] args, XelContext ctx) throws MathException{
    double x = CommonFns.toNumber(args[0]).doubleValue();
    double alpha = CommonFns.toNumber(args[1]).doubleValue();
    double beta = CommonFns.toNumber(args[1]).doubleValue();
    DistributionFactory factory = DistributionFactory.newInstance();
    WeibullDistribution wb = factory.createWeibullDistribution(alpha, beta);
    return UtilFns.validateNumber(wb.cumulativeProbability(x));
  }
View Full Code Here

TOP

Related Classes of org.apache.commons.math.distribution.WeibullDistribution

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.