Package org.renjin.stats.internals.distributions

Examples of org.renjin.stats.internals.distributions.UniformDistribution


    return q(new GammaDistributionImpl(shape, scale), p, lowerTail, logP);
  }

  @DataParallel @Internal
  public static double dunif(@Recycle double x, @Recycle double min, @Recycle double max, boolean log) {
    double d = new UniformDistribution(min, max).density(x);
    if (log) {
      d = Math.log(d);
    }
    return d;
  }
View Full Code Here


    return d;
  }

  @DataParallel @Internal
  public static double punif(@Recycle double q, @Recycle double min, @Recycle double max, boolean lowerTail, boolean logP) {
    return p(new UniformDistribution(min, max), q, lowerTail, logP);
  }
View Full Code Here

    return p(new UniformDistribution(min, max), q, lowerTail, logP);
  }

  @DataParallel @Internal
  public static double qunif(@Recycle double p, @Recycle double min, @Recycle double max, boolean lowerTail, boolean logP) {
    return q(new UniformDistribution(min, max), p, lowerTail, logP);
  }
View Full Code Here

TOP

Related Classes of org.renjin.stats.internals.distributions.UniformDistribution

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.