Package org.apache.commons.math.distribution

Examples of org.apache.commons.math.distribution.TDistribution.inverseCumulativeProbability()


  public static Object statTinv(Object[] args, XelContext ctx) throws MathException{
    double p = CommonFns.toNumber(args[0]).doubleValue();
    double degree_freedom = CommonFns.toNumber(args[1]).doubleValue();
    DistributionFactory factory = DistributionFactory.newInstance();
    TDistribution td = factory.createTDistribution(degree_freedom );
    return UtilFns.validateNumber(td.inverseCumulativeProbability((1-p)));
  }
 
  /**
   * Returns the weibull distribution
   * @param args arguments
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.