jdistlib
Class Arcsine
- java.lang.Object
-
- jdistlib.generic.GenericDistribution
-
- jdistlib.Arcsine
-
public class Arcsine extends GenericDistribution
Bounded Arcsine distribution; bounded by [a, b]. For unbounded Arcsine distribution, use Beta(0.5, 0.5). Note: Minimally tested.
-
-
Constructor Summary
Constructors Constructor and Description Arcsine(double a, double b)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublecumulative(double p, boolean lower_tail, boolean log_p)static doublecumulative(double x, double a, double b, boolean lower_tail, boolean log_p)doubledensity(double x, boolean log)static doubledensity(double x, double a, double b, boolean give_log)doublequantile(double q, boolean lower_tail, boolean log_p)static doublequantile(double q, double a, double b, boolean lower_tail, boolean log_p)Quantile method by bisectiondoublerandom()static doublerandom(double a, double b, RandomEngine random)static double[]random(int n, double a, double b, RandomEngine random)-
Methods inherited from class jdistlib.generic.GenericDistribution
cumulative_hazard, cumulative_hazard, cumulative, cumulative, cumulative, density, density, getRandomEngine, hazard, hazard, inverse_survival, inverse_survival, quantile, quantile, quantile, random, random, setRandomEngine, survival, survival, survival
-
-
-
-
Method Detail
-
density
public static final double density(double x, double a, double b, boolean give_log)
-
cumulative
public static final double cumulative(double x, double a, double b, boolean lower_tail, boolean log_p)
-
quantile
public static final double quantile(double q, double a, double b, boolean lower_tail, boolean log_p)Quantile method by bisection- Parameters:
q-a-b-lower_tail-log_p-
-
random
public static final double random(double a, double b, RandomEngine random)
-
random
public static final double[] random(int n, double a, double b, RandomEngine random)
-
density
public double density(double x, boolean log)- Specified by:
densityin classGenericDistribution
-
cumulative
public double cumulative(double p, boolean lower_tail, boolean log_p)- Specified by:
cumulativein classGenericDistribution
-
quantile
public double quantile(double q, boolean lower_tail, boolean log_p)- Specified by:
quantilein classGenericDistribution
-
random
public double random()
- Specified by:
randomin classGenericDistribution
-
-
DMelt 3.0 © DataMelt by jWork.ORG