Example usage for org.apache.commons.math.distribution CauchyDistributionImpl CauchyDistributionImpl

List of usage examples for org.apache.commons.math.distribution CauchyDistributionImpl CauchyDistributionImpl

Introduction

In this page you can find the example usage for org.apache.commons.math.distribution CauchyDistributionImpl CauchyDistributionImpl.

Prototype

public CauchyDistributionImpl(double median, double s) 

Source Link

Document

Create a cauchy distribution using the given median and scale.

Usage

From source file:org.renjin.stats.internals.Distributions.java

@DataParallel
@Internal/*ww w.j  a va  2s  . c  o  m*/
public static double dcauchy(@Recycle double x, @Recycle double location, @Recycle double scale, boolean log) {
    return d(new CauchyDistributionImpl(location, scale), x, log);
}

From source file:org.renjin.stats.internals.Distributions.java

@DataParallel
@Internal// w  ww  .  j av a  2 s  .co m
public static double pcauchy(@Recycle double q, @Recycle double location, @Recycle double scale,
        boolean lowerTail, boolean logP) {
    return p(new CauchyDistributionImpl(location, scale), q, lowerTail, logP);
}

From source file:org.renjin.stats.internals.Distributions.java

@DataParallel
@Internal//from w ww  .  j  a va 2 s . c  o  m
public static double qcauchy(@Recycle double p, @Recycle double location, @Recycle double scale,
        boolean lowerTail, boolean logP) {
    return q(new CauchyDistributionImpl(location, scale), p, lowerTail, logP);
}