Package JSci.maths.statistics

Examples of JSci.maths.statistics.OutOfRangeException


   *            the variance.
   */
  public NormalDistribution(double mu, double var) {
    mean = mu;
    if (var <= 0.0)
      throw new OutOfRangeException(
          "The variance should be (strictly) positive.");
    variance = var;
    pdfDenominator = SQRT2PI * Math.sqrt(variance);
    cdfDenominator = SQRT2 * Math.sqrt(variance);
  }
 
View Full Code Here

TOP

Related Classes of JSci.maths.statistics.OutOfRangeException

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.