List of usage examples for org.apache.commons.lang ArrayUtils toObject
public static Boolean[] toObject(boolean[] array)
Converts an array of primitive booleans to objects.
From source file:org.uncertml.distribution.continuous.ExponentialDistribution.java
/** * Constructor that takes an array of doubles for rate parameters. Each rate * represents a unique exponential distribution. This is in line with the * UncertML syntax whereby a collection of types can be represented by a single * entity./*from ww w . ja v a 2s. c o m*/ * * @param rate an array of doubles representing the rate parameter of n * exponential distributions. */ public ExponentialDistribution(double[] rate) { this(Arrays.asList(ArrayUtils.toObject(rate))); }
From source file:org.uncertml.distribution.continuous.FDistribution.java
/** * Constructor that takes an array of integers for denominator and numerator * parameters. Each denominator and numerator pair represents a unique F * distribution. This is in line with the UncertML syntax whereby a collection * of types can be represented by a single entity. Both arrays must be of * equal length and contain no null elements. * /* w ww . j ava2s .co m*/ * @param denominator an array of integers representing the denominator * parameters of n F distributions. * @param numerator an array of doubles representing the numerator parameters * of n F distributions. */ public FDistribution(int[] denominator, int[] numerator) { this(Arrays.asList(ArrayUtils.toObject(denominator)), Arrays.asList(ArrayUtils.toObject(numerator))); }
From source file:org.uncertml.distribution.continuous.GammaDistribution.java
/** * Constructor that takes an array of doubles for shape and scale parameters. * Each shape and scale pair represents a unique gamma distribution. This is * in line with the UncertML syntax whereby a collection of types can be * represented by a single entity. Both arrays must be of equal length and * contain no null elements./*www. ja v a 2 s . co m*/ * * @param shape an array of doubles representing the shape parameter of n * gamma distributions. * @param scale an array of doubles representing the scale parameter of n * gamma distributions. */ public GammaDistribution(double[] shape, double[] scale) { this(Arrays.asList(ArrayUtils.toObject(shape)), Arrays.asList(ArrayUtils.toObject(scale))); }
From source file:org.uncertml.distribution.continuous.InverseGammaDistribution.java
/** * Constructor that takes an array of doubles for the shape and scale parameters. * Each shape and scale pair represents a unique inverse gamma distribution. * This is in line with the UncertML syntax whereby a collection of types can * be represented by a single entity. The arrays must be of equal length. * /*w w w. j a va 2 s . c om*/ * @param shape an array of doubles representing the shape parameter of n * inverse gamma distributions. * @param scale an array of doubles representing the scale parameter of n * inverse gamma distributions. */ public InverseGammaDistribution(double[] shape, double[] scale) { this(Arrays.asList(ArrayUtils.toObject(shape)), Arrays.asList(ArrayUtils.toObject(scale))); }
From source file:org.uncertml.distribution.continuous.LaplaceDistribution.java
/** * Constructor that takes an array of doubles for the location and scale parameters. * Each location and scale pair represents a unique Laplace distribution. * This is in line with the UncertML syntax whereby a collection of types can * be represented by a single entity. The arrays must be of equal length. * //from www .j av a 2 s .com * @param location an array of doubles representing the location parameter of n * Laplace distributions. * @param scale an array of doubles representing the scale parameter of n * Laplace distributions. */ public LaplaceDistribution(double[] location, double[] scale) { this(Arrays.asList(ArrayUtils.toObject(location)), Arrays.asList(ArrayUtils.toObject(scale))); }
From source file:org.uncertml.distribution.continuous.LogisticDistribution.java
/** * Constructor that takes an array of doubles for the location and scale parameters. * Each location and scale pair represents a unique logistic distribution. * This is in line with the UncertML syntax whereby a collection of types can * be represented by a single entity. The arrays must be of equal length. * /*from w w w. jav a2s . co m*/ * @param location an array of doubles representing the location parameter of n * logistic distributions. * @param scale an array of doubles representing the scale parameter of n * logistic distributions. */ public LogisticDistribution(double[] location, double[] scale) { this(Arrays.asList(ArrayUtils.toObject(location)), Arrays.asList(ArrayUtils.toObject(scale))); }
From source file:org.uncertml.distribution.continuous.LogNormalDistribution.java
/** * Constructor that takes an array of doubles for the log-scale and shape parameters. * Each log-scale and scale pair represents a unique log-normal distribution. * This is in line with the UncertML syntax whereby a collection of types can * be represented by a single entity. The arrays must be of equal length. * /* w w w. j a v a 2s .c o m*/ * @param logScale an array of doubles representing the log-scale parameter of n * log-normal distributions. * @param shape an array of doubles representing the shape parameter of n * log-normal distributions. */ public LogNormalDistribution(double[] logScale, double[] shape) { this(Arrays.asList(ArrayUtils.toObject(logScale)), Arrays.asList(ArrayUtils.toObject(shape))); }
From source file:org.uncertml.distribution.continuous.NormalDistribution.java
/** * Constructor that takes an array of doubles for the mean and variance parameters. * Each mean and variance pair represents a unique normal distribution. * This is in line with the UncertML syntax whereby a collection of types can * be represented by a single entity. The arrays must be of equal length. * //w ww. j ava 2 s . c om * @param mean an array of doubles representing the mean parameter of n * normal distributions. * @param variance an array of doubles representing the variance parameter of n * normal distributions. */ public NormalDistribution(double[] mean, double[] variance) { this(Arrays.asList(ArrayUtils.toObject(mean)), Arrays.asList(ArrayUtils.toObject(variance))); }
From source file:org.uncertml.distribution.continuous.NormalInverseGammaDistribution.java
/** * Constructor that takes an array of doubles for the mean, variance scaling * shape and scale parameters. Each shape and scale pair represents a unique * normal inverse gamma distribution. This is in line with the UncertML syntax * whereby a collection of types can be represented by a single entity. * The arrays must be of equal length.//from w w w. ja v a2 s . co m * * @param mean an array of doubles representing the mean parameter of n normal * inverse gamma distributions. * @param varianceScaling an array of doubles representing the variance scaling * parameter of n normal inverse gamma distributions. * @param shape an array of doubles representing the shape parameter of n * normal inverse gamma distributions. * @param scale an array of doubles representing the scale parameter of n * normal inverse gamma distributions. */ public NormalInverseGammaDistribution(double[] mean, double[] varianceScaling, double[] shape, double[] scale) { this(Arrays.asList(ArrayUtils.toObject(mean)), Arrays.asList(ArrayUtils.toObject(varianceScaling)), Arrays.asList(ArrayUtils.toObject(shape)), Arrays.asList(ArrayUtils.toObject(scale))); }
From source file:org.uncertml.distribution.continuous.ParetoDistribution.java
/** * Constructor that takes an array of doubles for the scale and shape parameters. * Each scale and shape pair represents a unique Pareto distribution. * This is in line with the UncertML syntax whereby a collection of types can * be represented by a single entity. The arrays must be of equal length. * //from w w w.ja v a 2 s. c o m * @param scale an array of doubles representing the scale parameter of n * Pareto distributions. * @param shape an array of doubles representing the shape parameter of n * Pareto distributions. */ public ParetoDistribution(double[] scale, double[] shape) { this(Arrays.asList(ArrayUtils.toObject(scale)), Arrays.asList(ArrayUtils.toObject(shape))); }