Uses of Class
org.apache.commons.math3.exception.MathIllegalArgumentException
Packages that use MathIllegalArgumentException
Package
Description
This package holds the main interfaces and basic building block classes
dealing with differentiation.
Numerical integration (quadrature) algorithms for univariate real functions.
Univariate real functions interpolation algorithms.
Root finding algorithms, for univariate real functions.
Complex number type and implementations of complex transcendental
functions.
Specialized exceptions for algorithms errors.
Fraction number type and fraction number formatting.
This package provides Genetic Algorithms components and implementations.
This package provides basic 3D geometry components.
This package provides basic 2D geometry components.
This package provides algorithms to generate the convex hull
for a set of points in an two-dimensional euclidean space.
This package provides basic geometry components on the 1-sphere.
Linear algebra support.
Clustering algorithms.
This package provides classes to solve Ordinary Differential Equations problems.
Random number and random data generators.
Implementations of special functions such as Beta and Gamma.
Data storage, manipulation and summary routines.
All classes and sub-packages of this package are deprecated.
Correlations/Covariance computations.
Generic univariate summary statistic objects.
Summary statistics based on moments.
Summary statistics based on ranks.
Other summary statistics.
Classes providing hypothesis testing.
Statistical routines involving multivariate data.
Implementations of transform methods, including Fast Fourier transforms.
Convenience routines and common data structures used throughout the commons-math library.
-
Uses of MathIllegalArgumentException in org.apache.commons.math3.analysis.differentiation
Methods in org.apache.commons.math3.analysis.differentiation that throw MathIllegalArgumentExceptionModifier and TypeMethodDescriptionMultivariateDifferentiableFunction.value
(DerivativeStructure[] point) Compute the value for the function at the given point.MultivariateDifferentiableVectorFunction.value
(DerivativeStructure[] point) Compute the value for the function at the given point.UnivariateDifferentiableMatrixFunction.value
(DerivativeStructure x) Compute the value for the function.UnivariateDifferentiableVectorFunction.value
(DerivativeStructure x) Compute the value for the function. -
Uses of MathIllegalArgumentException in org.apache.commons.math3.analysis.integration
Methods in org.apache.commons.math3.analysis.integration that throw MathIllegalArgumentExceptionModifier and TypeMethodDescriptionprotected double
IterativeLegendreGaussIntegrator.doIntegrate()
Method for implementing actual integration algorithms in derived classes.protected double
LegendreGaussIntegrator.doIntegrate()
Deprecated.Method for implementing actual integration algorithms in derived classes.protected double
MidPointIntegrator.doIntegrate()
Method for implementing actual integration algorithms in derived classes.protected double
TrapezoidIntegrator.doIntegrate()
Method for implementing actual integration algorithms in derived classes.double
BaseAbstractUnivariateIntegrator.integrate
(int maxEval, UnivariateFunction f, double lower, double upper) Integrate the function in the given interval.double
UnivariateIntegrator.integrate
(int maxEval, UnivariateFunction f, double min, double max) Integrate the function in the given interval.protected void
BaseAbstractUnivariateIntegrator.setup
(int maxEval, UnivariateFunction f, double lower, double upper) Prepare for computation.Constructors in org.apache.commons.math3.analysis.integration that throw MathIllegalArgumentExceptionModifierConstructorDescriptionLegendreGaussIntegrator
(int n, double relativeAccuracy, double absoluteAccuracy) Deprecated.Build a Legendre-Gauss integrator with given accuracies.LegendreGaussIntegrator
(int n, double relativeAccuracy, double absoluteAccuracy, int minimalIterationCount, int maximalIterationCount) Deprecated.Build a Legendre-Gauss integrator with given accuracies and iterations counts.LegendreGaussIntegrator
(int n, int minimalIterationCount, int maximalIterationCount) Deprecated.Build a Legendre-Gauss integrator with given iteration counts. -
Uses of MathIllegalArgumentException in org.apache.commons.math3.analysis.interpolation
Methods in org.apache.commons.math3.analysis.interpolation that throw MathIllegalArgumentExceptionModifier and TypeMethodDescriptionMultivariateInterpolator.interpolate
(double[][] xval, double[] yval) Computes an interpolating function for the data set.UnivariateInterpolator.interpolate
(double[] xval, double[] yval) Compute an interpolating function for the dataset. -
Uses of MathIllegalArgumentException in org.apache.commons.math3.analysis.solvers
Methods in org.apache.commons.math3.analysis.solvers that throw MathIllegalArgumentExceptionModifier and TypeMethodDescriptiondouble
Solve for a zero root in the given interval.double
Solve for a zero in the given interval, start atstartValue
. -
Uses of MathIllegalArgumentException in org.apache.commons.math3.complex
Methods in org.apache.commons.math3.complex that throw MathIllegalArgumentExceptionModifier and TypeMethodDescriptionComplexFormat.format
(Object obj, StringBuffer toAppendTo, FieldPosition pos) Formats a object to produce a string.double
RootsOfUnity.getReal
(int k) Get the real part of thek
-thn
-th root of unity.static Complex
ComplexUtils.polar2Complex
(double r, double theta) Creates a complex number from the given polar representation. -
Uses of MathIllegalArgumentException in org.apache.commons.math3.exception
Subclasses of MathIllegalArgumentException in org.apache.commons.math3.exceptionModifier and TypeClassDescriptionclass
Exception to be thrown when two dimensions differ.class
Exception to be thrown when there is insufficient data to perform a computation.class
Base class for exceptions raised by a wrong number.class
Exception to be thrown when two sets of dimensions differ.class
Exception to be thrown when function values have the same sign at both ends of an interval.class
Exception to be thrown when the required data is missing.class
Exception to be thrown when the a sequence of values is not monotonically increasing or decreasing.class
Exception to be thrown when a number is not a number.class
Exception to be thrown when a number is not finite.class
Exception to be thrown when the argument is negative.class
Exception to be thrown when the argument is not greater than 0.class
All conditions checks that fail due to anull
argument must throw this exception.class
Exception to be thrown when a number is too large.class
Exception to be thrown when a number is too small.class
Exception to be thrown when some argument is out of range.class
Exception to be thrown when zero is provided where it is not allowed. -
Uses of MathIllegalArgumentException in org.apache.commons.math3.fraction
Methods in org.apache.commons.math3.fraction that throw MathIllegalArgumentExceptionModifier and TypeMethodDescriptionFractionFormat.format
(Object obj, StringBuffer toAppendTo, FieldPosition pos) Formats an object and appends the result to a StringBuffer.Constructors in org.apache.commons.math3.fraction that throw MathIllegalArgumentExceptionModifierConstructorDescriptionBigFraction
(double value) Create a fraction given the double value. -
Uses of MathIllegalArgumentException in org.apache.commons.math3.genetics
Subclasses of MathIllegalArgumentException in org.apache.commons.math3.geneticsModifier and TypeClassDescriptionclass
Exception indicating that the representation of a chromosome is not valid.Methods in org.apache.commons.math3.genetics that throw MathIllegalArgumentExceptionModifier and TypeMethodDescriptionCrossoverPolicy.crossover
(Chromosome first, Chromosome second) Perform a crossover operation on the given chromosomes.CycleCrossover.crossover
(Chromosome first, Chromosome second) Perform a crossover operation on the given chromosomes.NPointCrossover.crossover
(Chromosome first, Chromosome second) Performs a N-point crossover.OnePointCrossover.crossover
(Chromosome first, Chromosome second) Performs one point crossover.OrderedCrossover.crossover
(Chromosome first, Chromosome second) Perform a crossover operation on the given chromosomes.UniformCrossover.crossover
(Chromosome first, Chromosome second) Perform a crossover operation on the given chromosomes.RandomKey.inducedPermutation
(List<S> originalData, List<S> permutedData) Generates a representation of a permutation corresponding to a permutation which yieldspermutedData
when applied tooriginalData
.BinaryMutation.mutate
(Chromosome original) Mutate the given chromosome.MutationPolicy.mutate
(Chromosome original) Mutate the given chromosome.RandomKeyMutation.mutate
(Chromosome original) Mutate the given chromosome.SelectionPolicy.select
(Population population) Select two chromosomes from the population.TournamentSelection.select
(Population population) Select two chromosomes from the population. -
Uses of MathIllegalArgumentException in org.apache.commons.math3.geometry.euclidean.threed
Modifier and TypeClassDescriptionclass
This class represents exceptions thrown while building rotations from matrices.Methods in org.apache.commons.math3.geometry.euclidean.threed that throw MathIllegalArgumentExceptionModifier and TypeMethodDescriptionvoid
Reset the instance as if built from two points.Constructors in org.apache.commons.math3.geometry.euclidean.threed that throw MathIllegalArgumentExceptionModifierConstructorDescriptionFieldRotation
(FieldVector3D<T> axis, T angle) Deprecated.FieldRotation
(FieldVector3D<T> axis, T angle, RotationConvention convention) Build a rotation from an axis and an angle.Deprecated.as of 3.3, replaced withLine(Vector3D, Vector3D, double)
Build a line from two points.Deprecated.as of 3.6, replaced withRotation(Vector3D, double, RotationConvention)
Rotation
(Vector3D axis, double angle, RotationConvention convention) Build a rotation from an axis and an angle.Create a sub-line from a segment.Deprecated.as of 3.3, replaced withSubLine(Vector3D, Vector3D, double)
Create a sub-line from two endpoints. -
Uses of MathIllegalArgumentException in org.apache.commons.math3.geometry.euclidean.twod
Methods in org.apache.commons.math3.geometry.euclidean.twod that throw MathIllegalArgumentExceptionModifier and TypeMethodDescriptionstatic Transform
<Euclidean2D, Euclidean1D> Line.getTransform
(double cXX, double cYX, double cXY, double cYY, double cX1, double cY1) Get aTransform
embedding an affine transform.static Transform
<Euclidean2D, Euclidean1D> Line.getTransform
(AffineTransform transform) Deprecated.as of 3.6, replaced withLine.getTransform(double, double, double, double, double, double)
-
Uses of MathIllegalArgumentException in org.apache.commons.math3.geometry.euclidean.twod.hull
Constructors in org.apache.commons.math3.geometry.euclidean.twod.hull that throw MathIllegalArgumentExceptionModifierConstructorDescriptionConvexHull2D
(Vector2D[] vertices, double tolerance) Simple constructor. -
Uses of MathIllegalArgumentException in org.apache.commons.math3.geometry.spherical.oned
Modifier and TypeClassDescriptionstatic class
Specialized exception for inconsistent BSP tree state inconsistency. -
Uses of MathIllegalArgumentException in org.apache.commons.math3.linear
Subclasses of MathIllegalArgumentException in org.apache.commons.math3.linearModifier and TypeClassDescriptionclass
An exception to be thrown when the condition number of aRealLinearOperator
is too high.class
Exception to be thrown when either the number of rows or the number of columns of a matrix do not match the expected values.class
Exception to be thrown when a positive definite matrix is expected.class
Exception to be thrown when a symmetric, definite positiveRealLinearOperator
is expected.class
Exception to be thrown when a self-adjointRealLinearOperator
is expected.class
Exception to be thrown when a square matrix is expected.class
Exception to be thrown when a square linear operator is expected.class
Exception to be thrown when a symmetric matrix is expected.class
Exception to be thrown when a non-singular matrix is expected.class
Exception to be thrown when trying to invert a singular operator. -
Uses of MathIllegalArgumentException in org.apache.commons.math3.ml.clustering
Methods in org.apache.commons.math3.ml.clustering that throw MathIllegalArgumentExceptionModifier and TypeMethodDescriptionClusterer.cluster
(Collection<T> points) Perform a cluster analysis on the given set ofClusterable
instances.FuzzyKMeansClusterer.cluster
(Collection<T> dataPoints) Performs Fuzzy K-Means cluster analysis.KMeansPlusPlusClusterer.cluster
(Collection<T> points) Runs the K-means++ clustering algorithm.MultiKMeansPlusPlusClusterer.cluster
(Collection<T> points) Runs the K-means++ clustering algorithm. -
Uses of MathIllegalArgumentException in org.apache.commons.math3.ode
Subclasses of MathIllegalArgumentException in org.apache.commons.math3.odeModifier and TypeClassDescriptionstatic class
Special exception for equations mismatch.class
Exception to be thrown when a parameter is unknown.Methods in org.apache.commons.math3.ode that throw MathIllegalArgumentExceptionModifier and TypeMethodDescriptionvoid
ContinuousOutputFieldModel.append
(ContinuousOutputFieldModel<T> model) Append another model at the end of the instance.void
ContinuousOutputModel.append
(ContinuousOutputModel model) Append another model at the end of the instance.T[]
FieldEquationsMapper.extractEquationData
(int index, T[] complete) Extract equation data from a complete state or derivative array.void
SecondOrderIntegrator.integrate
(SecondOrderDifferentialEquations equations, double t0, double[] y0, double[] yDot0, double t, double[] y, double[] yDot) Integrate the differential equations up to the given time -
Uses of MathIllegalArgumentException in org.apache.commons.math3.random
Methods in org.apache.commons.math3.random that throw MathIllegalArgumentExceptionModifier and TypeMethodDescriptionvoid
ValueServer.fill
(double[] values) Fills the input array with values generated using getNext() repeatedly.double[]
ValueServer.fill
(int length) Returns an array of lengthlength
with values generated using getNext() repeatedly.double
ValueServer.getNext()
Returns the next generated value, generated according to the mode value (see MODE constants).int
RandomDataImpl.nextInversionDeviate
(IntegerDistribution distribution) Deprecated.use the distribution's sample() methoddouble
RandomDataImpl.nextInversionDeviate
(RealDistribution distribution) Deprecated.use the distribution's sample() method -
Uses of MathIllegalArgumentException in org.apache.commons.math3.special
Methods in org.apache.commons.math3.special that throw MathIllegalArgumentException -
Uses of MathIllegalArgumentException in org.apache.commons.math3.stat
Methods in org.apache.commons.math3.stat that throw MathIllegalArgumentExceptionModifier and TypeMethodDescriptionvoid
Frequency.addValue
(char v) Adds 1 to the frequency count for v.void
Frequency.addValue
(int v) Adds 1 to the frequency count for v.void
Frequency.addValue
(long v) Adds 1 to the frequency count for v.void
Frequency.addValue
(Comparable<?> v) Adds 1 to the frequency count for v.static double
StatUtils.geometricMean
(double[] values) Returns the geometric mean of the entries in the input array, orDouble.NaN
if the array is empty.static double
StatUtils.geometricMean
(double[] values, int begin, int length) Returns the geometric mean of the entries in the specified portion of the input array, orDouble.NaN
if the designated subarray is empty.void
Frequency.incrementValue
(char v, long increment) Increments the frequency count for v.void
Frequency.incrementValue
(int v, long increment) Increments the frequency count for v.void
Frequency.incrementValue
(long v, long increment) Increments the frequency count for v.void
Frequency.incrementValue
(Comparable<?> v, long increment) Increments the frequency count for v.static double
StatUtils.max
(double[] values) Returns the maximum of the entries in the input array, orDouble.NaN
if the array is empty.static double
StatUtils.max
(double[] values, int begin, int length) Returns the maximum of the entries in the specified portion of the input array, orDouble.NaN
if the designated subarray is empty.static double
StatUtils.mean
(double[] values) Returns the arithmetic mean of the entries in the input array, orDouble.NaN
if the array is empty.static double
StatUtils.mean
(double[] values, int begin, int length) Returns the arithmetic mean of the entries in the specified portion of the input array, orDouble.NaN
if the designated subarray is empty.static double
StatUtils.min
(double[] values) Returns the minimum of the entries in the input array, orDouble.NaN
if the array is empty.static double
StatUtils.min
(double[] values, int begin, int length) Returns the minimum of the entries in the specified portion of the input array, orDouble.NaN
if the designated subarray is empty.static double[]
StatUtils.mode
(double[] sample) Returns the sample mode(s).static double
StatUtils.percentile
(double[] values, double p) Returns an estimate of thep
th percentile of the values in thevalues
array.static double
StatUtils.percentile
(double[] values, int begin, int length, double p) Returns an estimate of thep
th percentile of the values in thevalues
array, starting with the element in (0-based) positionbegin
in the array and includinglength
values.static double
StatUtils.populationVariance
(double[] values) Returns the population variance of the entries in the input array, orDouble.NaN
if the array is empty.static double
StatUtils.populationVariance
(double[] values, double mean) Returns the population variance of the entries in the input array, using the precomputed mean value.static double
StatUtils.populationVariance
(double[] values, double mean, int begin, int length) Returns the population variance of the entries in the specified portion of the input array, using the precomputed mean value.static double
StatUtils.populationVariance
(double[] values, int begin, int length) Returns the population variance of the entries in the specified portion of the input array, orDouble.NaN
if the designated subarray is empty.static double
StatUtils.product
(double[] values) Returns the product of the entries in the input array, orDouble.NaN
if the array is empty.static double
StatUtils.product
(double[] values, int begin, int length) Returns the product of the entries in the specified portion of the input array, orDouble.NaN
if the designated subarray is empty.static double
StatUtils.sum
(double[] values) Returns the sum of the values in the input array, orDouble.NaN
if the array is empty.static double
StatUtils.sum
(double[] values, int begin, int length) Returns the sum of the entries in the specified portion of the input array, orDouble.NaN
if the designated subarray is empty.static double
StatUtils.sumLog
(double[] values) Returns the sum of the natural logs of the entries in the input array, orDouble.NaN
if the array is empty.static double
StatUtils.sumLog
(double[] values, int begin, int length) Returns the sum of the natural logs of the entries in the specified portion of the input array, orDouble.NaN
if the designated subarray is empty.static double
StatUtils.sumSq
(double[] values) Returns the sum of the squares of the entries in the input array, orDouble.NaN
if the array is empty.static double
StatUtils.sumSq
(double[] values, int begin, int length) Returns the sum of the squares of the entries in the specified portion of the input array, orDouble.NaN
if the designated subarray is empty.static double
StatUtils.variance
(double[] values) Returns the variance of the entries in the input array, orDouble.NaN
if the array is empty.static double
StatUtils.variance
(double[] values, double mean) Returns the variance of the entries in the input array, using the precomputed mean value.static double
StatUtils.variance
(double[] values, double mean, int begin, int length) Returns the variance of the entries in the specified portion of the input array, using the precomputed mean value.static double
StatUtils.variance
(double[] values, int begin, int length) Returns the variance of the entries in the specified portion of the input array, orDouble.NaN
if the designated subarray is empty. -
Uses of MathIllegalArgumentException in org.apache.commons.math3.stat.clustering
Methods in org.apache.commons.math3.stat.clustering that throw MathIllegalArgumentExceptionModifier and TypeMethodDescriptionKMeansPlusPlusClusterer.cluster
(Collection<T> points, int k, int maxIterations) Deprecated.Runs the K-means++ clustering algorithm.KMeansPlusPlusClusterer.cluster
(Collection<T> points, int k, int numTrials, int maxIterationsPerTrial) Deprecated.Runs the K-means++ clustering algorithm. -
Uses of MathIllegalArgumentException in org.apache.commons.math3.stat.correlation
Methods in org.apache.commons.math3.stat.correlation that throw MathIllegalArgumentExceptionModifier and TypeMethodDescriptionprotected RealMatrix
Covariance.computeCovarianceMatrix
(double[][] data) Create a covariance matrix from a rectangular array whose columns represent covariates.protected RealMatrix
Covariance.computeCovarianceMatrix
(double[][] data, boolean biasCorrected) Compute a covariance matrix from a rectangular array whose columns represent covariates.protected RealMatrix
Covariance.computeCovarianceMatrix
(RealMatrix matrix) Create a covariance matrix from a matrix whose columns represent covariates.protected RealMatrix
Covariance.computeCovarianceMatrix
(RealMatrix matrix, boolean biasCorrected) Compute a covariance matrix from a matrix whose columns represent covariates.double
Covariance.covariance
(double[] xArray, double[] yArray) Computes the covariance between the two arrays, using the bias-corrected formula.double
Covariance.covariance
(double[] xArray, double[] yArray, boolean biasCorrected) Computes the covariance between the two arrays.Constructors in org.apache.commons.math3.stat.correlation that throw MathIllegalArgumentExceptionModifierConstructorDescriptionCovariance
(double[][] data) Create a Covariance matrix from a rectangular array whose columns represent covariates.Covariance
(double[][] data, boolean biasCorrected) Create a Covariance matrix from a rectangular array whose columns represent covariates.Covariance
(RealMatrix matrix) Create a covariance matrix from a matrix whose columns represent covariates.Covariance
(RealMatrix matrix, boolean biasCorrected) Create a covariance matrix from a matrix whose columns represent covariates. -
Uses of MathIllegalArgumentException in org.apache.commons.math3.stat.descriptive
Methods in org.apache.commons.math3.stat.descriptive that throw MathIllegalArgumentExceptionModifier and TypeMethodDescriptiondouble
AbstractStorelessUnivariateStatistic.evaluate
(double[] values) This default implementation callsAbstractStorelessUnivariateStatistic.clear()
, then invokesAbstractStorelessUnivariateStatistic.increment(double)
in a loop over the the input array, and then usesAbstractStorelessUnivariateStatistic.getResult()
to compute the return value.double
AbstractStorelessUnivariateStatistic.evaluate
(double[] values, int begin, int length) This default implementation callsAbstractStorelessUnivariateStatistic.clear()
, then invokesAbstractStorelessUnivariateStatistic.increment(double)
in a loop over the specified portion of the input array, and then usesAbstractStorelessUnivariateStatistic.getResult()
to compute the return value.double
AbstractUnivariateStatistic.evaluate()
Returns the result of evaluating the statistic over the stored data.double
AbstractUnivariateStatistic.evaluate
(double[] values) Returns the result of evaluating the statistic over the input array.abstract double
AbstractUnivariateStatistic.evaluate
(double[] values, int begin, int length) Returns the result of evaluating the statistic over the specified entries in the input array.double
UnivariateStatistic.evaluate
(double[] values) Returns the result of evaluating the statistic over the input array.double
UnivariateStatistic.evaluate
(double[] values, int begin, int length) Returns the result of evaluating the statistic over the specified entries in the input array.double
WeightedEvaluation.evaluate
(double[] values, double[] weights) Returns the result of evaluating the statistic over the input array, using the supplied weights.double
WeightedEvaluation.evaluate
(double[] values, double[] weights, int begin, int length) Returns the result of evaluating the statistic over the specified entries in the input array, using corresponding entries in the supplied weights array.double
DescriptiveStatistics.getPercentile
(double p) Returns an estimate for the pth percentile of the stored values.void
AbstractStorelessUnivariateStatistic.incrementAll
(double[] values) This default implementation just callsAbstractStorelessUnivariateStatistic.increment(double)
in a loop over the input array.void
AbstractStorelessUnivariateStatistic.incrementAll
(double[] values, int begin, int length) This default implementation just callsAbstractStorelessUnivariateStatistic.increment(double)
in a loop over the specified portion of the input array.void
StorelessUnivariateStatistic.incrementAll
(double[] values) Updates the internal state of the statistic to reflect addition of all values in the values array.void
StorelessUnivariateStatistic.incrementAll
(double[] values, int start, int length) Updates the internal state of the statistic to reflect addition of the values in the designated portion of the values array.void
AbstractUnivariateStatistic.setData
(double[] values, int begin, int length) Set the data array.void
DescriptiveStatistics.setPercentileImpl
(UnivariateStatistic percentileImpl) Sets the implementation to be used byDescriptiveStatistics.getPercentile(double)
.void
DescriptiveStatistics.setWindowSize
(int windowSize) WindowSize controls the number of values that contribute to the reported statistics.void
SynchronizedDescriptiveStatistics.setWindowSize
(int windowSize) WindowSize controls the number of values that contribute to the reported statistics.protected boolean
AbstractUnivariateStatistic.test
(double[] values, double[] weights, int begin, int length) This method is used byevaluate(double[], double[], int, int)
methods to verify that the begin and length parameters designate a subarray of positive length and the weights are all non-negative, non-NaN, finite, and not all zero.protected boolean
AbstractUnivariateStatistic.test
(double[] values, double[] weights, int begin, int length, boolean allowEmpty) This method is used byevaluate(double[], double[], int, int)
methods to verify that the begin and length parameters designate a subarray of positive length and the weights are all non-negative, non-NaN, finite, and not all zero.protected boolean
AbstractUnivariateStatistic.test
(double[] values, int begin, int length) This method is used byevaluate(double[], int, int)
methods to verify that the input parameters designate a subarray of positive length.protected boolean
AbstractUnivariateStatistic.test
(double[] values, int begin, int length, boolean allowEmpty) This method is used byevaluate(double[], int, int)
methods to verify that the input parameters designate a subarray of positive length.Constructors in org.apache.commons.math3.stat.descriptive that throw MathIllegalArgumentExceptionModifierConstructorDescriptionDescriptiveStatistics
(int window) Construct a DescriptiveStatistics instance with the specified windowSynchronizedDescriptiveStatistics
(int window) Construct an instance with finite window -
Uses of MathIllegalArgumentException in org.apache.commons.math3.stat.descriptive.moment
Methods in org.apache.commons.math3.stat.descriptive.moment that throw MathIllegalArgumentExceptionModifier and TypeMethodDescriptiondouble
GeometricMean.evaluate
(double[] values, int begin, int length) Returns the geometric mean of the entries in the specified portion of the input array.double
Kurtosis.evaluate
(double[] values, int begin, int length) Returns the kurtosis of the entries in the specified portion of the input array.double
Mean.evaluate
(double[] values, double[] weights) Returns the weighted arithmetic mean of the entries in the input array.double
Mean.evaluate
(double[] values, double[] weights, int begin, int length) Returns the weighted arithmetic mean of the entries in the specified portion of the input array, orDouble.NaN
if the designated subarray is empty.double
Mean.evaluate
(double[] values, int begin, int length) Returns the arithmetic mean of the entries in the specified portion of the input array, orDouble.NaN
if the designated subarray is empty.double
SemiVariance.evaluate
(double[] values, double cutoff) Returns theSemiVariance
of the designated values against the cutoff, using instance properties variancDirection and biasCorrection.double
SemiVariance.evaluate
(double[] values, double cutoff, SemiVariance.Direction direction) Returns theSemiVariance
of the designated values against the cutoff in the given direction, using the current value of the biasCorrection instance property.double
SemiVariance.evaluate
(double[] values, double cutoff, SemiVariance.Direction direction, boolean corrected, int start, int length) Returns theSemiVariance
of the designated values against the cutoff in the given direction with the provided bias correction.double
SemiVariance.evaluate
(double[] values, int start, int length) Returns theSemiVariance
of the designated values against the mean, using instance properties varianceDirection and biasCorrection.double
SemiVariance.evaluate
(double[] values, SemiVariance.Direction direction) This method calculatesSemiVariance
for the entire array against the mean, using the current value of the biasCorrection instance property.double
Skewness.evaluate
(double[] values, int begin, int length) Returns the Skewness of the entries in the specifed portion of the input array.double
StandardDeviation.evaluate
(double[] values) Returns the Standard Deviation of the entries in the input array, orDouble.NaN
if the array is empty.double
StandardDeviation.evaluate
(double[] values, double mean) Returns the Standard Deviation of the entries in the input array, using the precomputed mean value.double
StandardDeviation.evaluate
(double[] values, double mean, int begin, int length) Returns the Standard Deviation of the entries in the specified portion of the input array, using the precomputed mean value.double
StandardDeviation.evaluate
(double[] values, int begin, int length) Returns the Standard Deviation of the entries in the specified portion of the input array, orDouble.NaN
if the designated subarray is empty.double
Variance.evaluate
(double[] values) Returns the variance of the entries in the input array, orDouble.NaN
if the array is empty.double
Variance.evaluate
(double[] values, double mean) Returns the variance of the entries in the input array, using the precomputed mean value.double
Variance.evaluate
(double[] values, double[] weights) Returns the weighted variance of the entries in the the input array.double
Variance.evaluate
(double[] values, double[] weights, double mean) Returns the weighted variance of the values in the input array, using the precomputed weighted mean value.double
Variance.evaluate
(double[] values, double[] weights, double mean, int begin, int length) Returns the weighted variance of the entries in the specified portion of the input array, using the precomputed weighted mean value.double
Variance.evaluate
(double[] values, double[] weights, int begin, int length) Returns the weighted variance of the entries in the specified portion of the input array, orDouble.NaN
if the designated subarray is empty.double
Variance.evaluate
(double[] values, double mean, int begin, int length) Returns the variance of the entries in the specified portion of the input array, using the precomputed mean value.double
Variance.evaluate
(double[] values, int begin, int length) Returns the variance of the entries in the specified portion of the input array, orDouble.NaN
if the designated subarray is empty. -
Uses of MathIllegalArgumentException in org.apache.commons.math3.stat.descriptive.rank
Methods in org.apache.commons.math3.stat.descriptive.rank that throw MathIllegalArgumentExceptionModifier and TypeMethodDescriptiondouble
Max.evaluate
(double[] values, int begin, int length) Returns the maximum of the entries in the specified portion of the input array, orDouble.NaN
if the designated subarray is empty.double
Min.evaluate
(double[] values, int begin, int length) Returns the minimum of the entries in the specified portion of the input array, orDouble.NaN
if the designated subarray is empty.double
Percentile.evaluate
(double p) Returns the result of evaluating the statistic over the stored data.double
Percentile.evaluate
(double[] values, double p) Returns an estimate of thep
th percentile of the values in thevalues
array.double
Percentile.evaluate
(double[] values, int start, int length) Returns an estimate of thequantile
th percentile of the designated values in thevalues
array.double
Percentile.evaluate
(double[] values, int begin, int length, double p) Returns an estimate of thep
th percentile of the values in thevalues
array, starting with the element in (0-based) positionbegin
in the array and includinglength
values.void
Percentile.setData
(double[] values, int begin, int length) Set the data array.void
Percentile.setQuantile
(double p) Sets the value of the quantile field (determines what percentile is computed when evaluate() is called with no quantile argument).Constructors in org.apache.commons.math3.stat.descriptive.rank that throw MathIllegalArgumentExceptionModifierConstructorDescriptionPercentile
(double quantile) Constructs a Percentile with the specific quantile value and the following default method type:Percentile.EstimationType.LEGACY
default NaN strategy:NaNStrategy.REMOVED
a Kth Selector :KthSelector
protected
Percentile
(double quantile, Percentile.EstimationType estimationType, NaNStrategy nanStrategy, KthSelector kthSelector) Constructs a Percentile with the specific quantile value,Percentile.EstimationType
,NaNStrategy
andKthSelector
. -
Uses of MathIllegalArgumentException in org.apache.commons.math3.stat.descriptive.summary
Methods in org.apache.commons.math3.stat.descriptive.summary that throw MathIllegalArgumentExceptionModifier and TypeMethodDescriptiondouble
Product.evaluate
(double[] values, double[] weights) Returns the weighted product of the entries in the input array.double
Product.evaluate
(double[] values, double[] weights, int begin, int length) Returns the weighted product of the entries in the specified portion of the input array, orDouble.NaN
if the designated subarray is empty.double
Product.evaluate
(double[] values, int begin, int length) Returns the product of the entries in the specified portion of the input array, orDouble.NaN
if the designated subarray is empty.double
Sum.evaluate
(double[] values, double[] weights) The weighted sum of the entries in the the input array.double
Sum.evaluate
(double[] values, double[] weights, int begin, int length) The weighted sum of the entries in the specified portion of the input array, or 0 if the designated subarray is empty.double
Sum.evaluate
(double[] values, int begin, int length) The sum of the entries in the specified portion of the input array, or 0 if the designated subarray is empty.double
SumOfLogs.evaluate
(double[] values, int begin, int length) Returns the sum of the natural logs of the entries in the specified portion of the input array, orDouble.NaN
if the designated subarray is empty.double
SumOfSquares.evaluate
(double[] values, int begin, int length) Returns the sum of the squares of the entries in the specified portion of the input array, orDouble.NaN
if the designated subarray is empty. -
Uses of MathIllegalArgumentException in org.apache.commons.math3.stat.inference
Methods in org.apache.commons.math3.stat.inference that throw MathIllegalArgumentExceptionModifier and TypeMethodDescriptionprotected double
TTest.tTest
(double m, double mu, double v, double n) Computes p-value for 2-sided, 1-sample t-test. -
Uses of MathIllegalArgumentException in org.apache.commons.math3.stat.regression
Subclasses of MathIllegalArgumentException in org.apache.commons.math3.stat.regressionModifier and TypeClassDescriptionclass
Exception thrown when a regression model is not correctly specified.Methods in org.apache.commons.math3.stat.regression that throw MathIllegalArgumentExceptionModifier and TypeMethodDescriptionvoid
OLSMultipleLinearRegression.newSampleData
(double[] y, double[][] x) Loads model x and y sample data, overriding any previous sample.SimpleRegression.regress
(int[] variablesToInclude) Performs a regression on data present in buffers including only regressors indexed in variablesToInclude and outputs a RegressionResults objectUpdatingMultipleLinearRegression.regress
(int[] variablesToInclude) Performs a regression on data present in buffers including only regressors indexed in variablesToInclude and outputs a RegressionResults objectprotected void
AbstractMultipleLinearRegression.validateSampleData
(double[][] x, double[] y) Validates sample data. -
Uses of MathIllegalArgumentException in org.apache.commons.math3.transform
Methods in org.apache.commons.math3.transform that throw MathIllegalArgumentExceptionModifier and TypeMethodDescriptionstatic int
TransformUtils.exactLog2
(int n) Returns the base-2 logarithm of the specifiedint
.protected double[]
FastCosineTransformer.fct
(double[] f) Perform the FCT algorithm (including inverse).protected double[]
FastHadamardTransformer.fht
(double[] x) The FHT (Fast Hadamard Transformation) which uses only subtraction and addition.protected int[]
FastHadamardTransformer.fht
(int[] x) Returns the forward transform of the specified integer data set.protected double[]
FastSineTransformer.fst
(double[] f) Perform the FST algorithm (including inverse).double[]
FastCosineTransformer.transform
(double[] f, TransformType type) Returns the (forward, inverse) transform of the specified real data set.double[]
FastCosineTransformer.transform
(UnivariateFunction f, double min, double max, int n, TransformType type) Returns the (forward, inverse) transform of the specified real function, sampled on the specified interval.double[]
RealTransformer.transform
(double[] f, TransformType type) Returns the (forward, inverse) transform of the specified real data set.double[]
RealTransformer.transform
(UnivariateFunction f, double min, double max, int n, TransformType type) Returns the (forward, inverse) transform of the specified real function, sampled on the specified interval. -
Uses of MathIllegalArgumentException in org.apache.commons.math3.util
Methods in org.apache.commons.math3.util that throw MathIllegalArgumentExceptionModifier and TypeMethodDescriptionprotected void
ResizableDoubleArray.checkContractExpand
(float contraction, float expansion) Deprecated.As of 3.1.void
ResizableDoubleArray.discardFrontElements
(int i) Discards thei
initial elements of the array.void
ResizableDoubleArray.discardMostRecentElements
(int i) Discards thei
last elements of the array.static double[]
MathArrays.normalizeArray
(double[] values, double normalizedSum) Normalizes an array to make it sum to a specified value.int
CentralPivotingStrategy.pivotIndex
(double[] work, int begin, int end) Find pivot index of the array so that partition and Kth element selection can be madeint
MedianOf3PivotingStrategy.pivotIndex
(double[] work, int begin, int end) Find pivot index of the array so that partition and Kth element selection can be madeint
PivotingStrategyInterface.pivotIndex
(double[] work, int begin, int end) Find pivot index of the array so that partition and Kth element selection can be madeint
RandomPivotingStrategy.pivotIndex
(double[] work, int begin, int end) Find pivot index of the array so that partition and Kth element selection can be madestatic float
Precision.round
(float x, int scale, int roundingMethod) Rounds the given value to the specified number of decimal places.void
ResizableDoubleArray.setContractionCriteria
(float contractionCriteria) Deprecated.As of 3.1 (to be removed in 4.0 as field will become "final").void
ResizableDoubleArray.setExpansionFactor
(float expansionFactor) Deprecated.As of 3.1 (to be removed in 4.0 as field will become "final").void
ResizableDoubleArray.setExpansionMode
(int expansionMode) Deprecated.As of 3.1.protected void
ResizableDoubleArray.setInitialCapacity
(int initialCapacity) Deprecated.As of 3.1, this is a no-op.void
ResizableDoubleArray.setNumElements
(int i) This function allows you to control the number of elements contained in this array, and can be used to "throw out" the last n values in an array.double
double
Implementing this interface provides a facility to transform from Object to Double.double
Attempts to transform the Object against the map of NumberTransformers.static boolean
MathArrays.verifyValues
(double[] values, double[] weights, int begin, int length) This method is used to verify that the begin and length parameters designate a subarray of positive length and the weights are all non-negative, non-NaN, finite, and not all zero.static boolean
MathArrays.verifyValues
(double[] values, double[] weights, int begin, int length, boolean allowEmpty) This method is used to verify that the begin and length parameters designate a subarray of positive length and the weights are all non-negative, non-NaN, finite, and not all zero.static boolean
MathArrays.verifyValues
(double[] values, int begin, int length) This method is used to verify that the input parameters designate a subarray of positive length.static boolean
MathArrays.verifyValues
(double[] values, int begin, int length, boolean allowEmpty) This method is used to verify that the input parameters designate a subarray of positive length.Constructors in org.apache.commons.math3.util that throw MathIllegalArgumentExceptionModifierConstructorDescriptionResizableDoubleArray
(int initialCapacity) Creates an instance with the specified initial capacity.ResizableDoubleArray
(int initialCapacity, double expansionFactor) Creates an instance with the specified initial capacity and expansion factor.ResizableDoubleArray
(int initialCapacity, double expansionFactor, double contractionCriterion) Creates an instance with the specified initial capacity, expansion factor, and contraction criteria.ResizableDoubleArray
(int initialCapacity, double expansionFactor, double contractionCriterion, ResizableDoubleArray.ExpansionMode expansionMode, double... data) Creates an instance with the specified properties.ResizableDoubleArray
(int initialCapacity, float expansionFactor) Deprecated.As of 3.1.ResizableDoubleArray
(int initialCapacity, float expansionFactor, float contractionCriteria) Deprecated.As of 3.1.ResizableDoubleArray
(int initialCapacity, float expansionFactor, float contractionCriteria, int expansionMode) Deprecated.As of 3.1.
FieldRotation(FieldVector3D, RealFieldElement, RotationConvention)