Uses of Class
org.apache.commons.math3.exception.MathArithmeticException
Packages that use MathArithmeticException
Package
Description
Common classes used throughout the commons-math library.
This package holds the main interfaces and basic building block classes
dealing with differentiation.
Univariate real functions interpolation algorithms.
Implementations of common discrete and continuous distributions.
This package is the top level package for geometry.
This package provides basic 1D geometry components.
This package provides basic 3D geometry components.
This package provides basic 2D geometry components.
This package provides basic geometry components on the 2-sphere.
Linear algebra support.
Classes providing hypothesis testing.
Convenience routines and common data structures used throughout the commons-math library.
-
Uses of MathArithmeticException in org.apache.commons.math3
Methods in org.apache.commons.math3 that throw MathArithmeticExceptionModifier and TypeMethodDescriptionCompute this ÷ a.FieldElement.reciprocal()Returns the multiplicative inverse ofthiselement. -
Uses of MathArithmeticException in org.apache.commons.math3.analysis.differentiation
Methods in org.apache.commons.math3.analysis.differentiation that throw MathArithmeticException -
Uses of MathArithmeticException in org.apache.commons.math3.analysis.interpolation
Methods in org.apache.commons.math3.analysis.interpolation that throw MathArithmeticExceptionModifier and TypeMethodDescriptionvoidFieldHermiteInterpolator.addSamplePoint(T x, T[]... value) Add a sample point.voidHermiteInterpolator.addSamplePoint(double x, double[]... value) Add a sample point. -
Uses of MathArithmeticException in org.apache.commons.math3.distribution
Methods in org.apache.commons.math3.distribution that throw MathArithmeticExceptionModifier and TypeMethodDescriptiondoubleKolmogorovSmirnovDistribution.cdf(double d) Deprecated.CalculatesP(D_n < d)using method described in [1] with quick decisions for extreme values given in [2] (see above).doubleKolmogorovSmirnovDistribution.cdf(double d, boolean exact) Deprecated.CalculatesP(D_n < d)using method described in [1] with quick decisions for extreme values given in [2] (see above).doubleKolmogorovSmirnovDistribution.cdfExact(double d) Deprecated.CalculatesP(D_n < d)using method described in [1] with quick decisions for extreme values given in [2] (see above).Constructors in org.apache.commons.math3.distribution that throw MathArithmeticExceptionModifierConstructorDescriptionEnumeratedDistribution(List<Pair<T, Double>> pmf) Create an enumerated distribution using the given probability mass function enumeration.EnumeratedDistribution(RandomGenerator rng, List<Pair<T, Double>> pmf) Create an enumerated distribution using the given random number generator and probability mass function enumeration.EnumeratedIntegerDistribution(int[] singletons, double[] probabilities) Create a discrete distribution using the given probability mass function definition.EnumeratedIntegerDistribution(RandomGenerator rng, int[] singletons, double[] probabilities) Create a discrete distribution using the given random number generator and probability mass function definition.EnumeratedRealDistribution(double[] singletons, double[] probabilities) Create a discrete real-valued distribution using the given probability mass function enumeration.EnumeratedRealDistribution(RandomGenerator rng, double[] singletons, double[] probabilities) Create a discrete real-valued distribution using the given random number generator and probability mass function enumeration. -
Uses of MathArithmeticException in org.apache.commons.math3.geometry
Methods in org.apache.commons.math3.geometry that throw MathArithmeticException -
Uses of MathArithmeticException in org.apache.commons.math3.geometry.euclidean.oned
Methods in org.apache.commons.math3.geometry.euclidean.oned that throw MathArithmeticException -
Uses of MathArithmeticException in org.apache.commons.math3.geometry.euclidean.threed
Methods in org.apache.commons.math3.geometry.euclidean.threed that throw MathArithmeticExceptionModifier and TypeMethodDescriptionstatic <T extends RealFieldElement<T>>
TFieldVector3D.angle(FieldVector3D<T> v1, FieldVector3D<T> v2) Compute the angular separation between two vectors.static <T extends RealFieldElement<T>>
TFieldVector3D.angle(FieldVector3D<T> v1, Vector3D v2) Compute the angular separation between two vectors.static <T extends RealFieldElement<T>>
TFieldVector3D.angle(Vector3D v1, FieldVector3D<T> v2) Compute the angular separation between two vectors.static doubleCompute the angular separation between two vectors.FieldVector3D.normalize()Get a normalized vector aligned with the instance.Vector3D.normalize()Get a normalized vector aligned with the instance.FieldVector3D.orthogonal()Get a vector orthogonal to the instance.Vector3D.orthogonal()Get a vector orthogonal to the instance.voidReset the instance as if built from a point and a normal.Constructors in org.apache.commons.math3.geometry.euclidean.threed that throw MathArithmeticExceptionModifierConstructorDescriptionFieldRotation(FieldVector3D<T> u, FieldVector3D<T> v) Build one of the rotations that transform one vector into another one.FieldRotation(FieldVector3D<T> u1, FieldVector3D<T> u2, FieldVector3D<T> v1, FieldVector3D<T> v2) Build the rotation that transforms a pair of vectors into another pair.Deprecated.Build a plane normal to a given direction and containing the origin.Deprecated.as of 3.3, replaced withPlane(Vector3D, Vector3D, double)Build a plane from a point and a normal.Deprecated.as of 3.3, replaced withPlane(Vector3D, Vector3D, Vector3D, double)Build a plane from three points.Build one of the rotations that transform one vector into another one.Build the rotation that transforms a pair of vectors into another pair. -
Uses of MathArithmeticException in org.apache.commons.math3.geometry.euclidean.twod
Methods in org.apache.commons.math3.geometry.euclidean.twod that throw MathArithmeticException -
Uses of MathArithmeticException in org.apache.commons.math3.geometry.spherical.twod
Constructors in org.apache.commons.math3.geometry.spherical.twod that throw MathArithmeticException -
Uses of MathArithmeticException in org.apache.commons.math3.linear
Methods in org.apache.commons.math3.linear that throw MathArithmeticExceptionModifier and TypeMethodDescriptiondoubleRealVector.cosine(RealVector v) Computes the cosine of the angle between this vector and the argument.ArrayFieldVector.ebeDivide(ArrayFieldVector<T> v) Element-by-element division.ArrayFieldVector.ebeDivide(FieldVector<T> v) Element-by-element division.FieldVector.ebeDivide(FieldVector<T> v) Element-by-element division.SparseFieldVector.ebeDivide(FieldVector<T> v) Element-by-element division.Map a division operation to each entry.Map a division operation to each entry.Map a division operation to each entry.ArrayFieldVector.mapDivideToSelf(T d) Map a division operation to each entry.FieldVector.mapDivideToSelf(T d) Map a division operation to each entry.SparseFieldVector.mapDivideToSelf(T d) Map a division operation to each entry.ArrayFieldVector.mapInv()Map the 1/x function to each entry.FieldVector.mapInv()Map the 1/x function to each entry.SparseFieldVector.mapInv()Map the 1/x function to each entry.ArrayFieldVector.mapInvToSelf()Map the 1/x function to each entry.FieldVector.mapInvToSelf()Map the 1/x function to each entry.SparseFieldVector.mapInvToSelf()Map the 1/x function to each entry.ArrayFieldVector.projection(ArrayFieldVector<T> v) Find the orthogonal projection of this vector onto another vector.ArrayFieldVector.projection(FieldVector<T> v) Find the orthogonal projection of this vector onto another vector.FieldVector.projection(FieldVector<T> v) Find the orthogonal projection of this vector onto another vector.RealVector.projection(RealVector v) Find the orthogonal projection of this vector onto another vector.SparseFieldVector.projection(FieldVector<T> v) Find the orthogonal projection of this vector onto another vector.static voidMatrixUtils.solveLowerTriangularSystem(RealMatrix rm, RealVector b) Solve a system of composed of a Lower Triangular MatrixRealMatrix.static voidMatrixUtils.solveUpperTriangularSystem(RealMatrix rm, RealVector b) Solver a system composed of an Upper Triangular MatrixRealMatrix.voidOpenMapRealVector.unitize()Converts this vector into a unit vector.voidRealVector.unitize()Converts this vector into a unit vector.OpenMapRealVector.unitVector()Creates a unit vector pointing in the direction of this vector.RealVector.unitVector()Creates a unit vector pointing in the direction of this vector.Constructors in org.apache.commons.math3.linear that throw MathArithmeticExceptionModifierConstructorDescriptionEigenDecomposition(RealMatrix matrix) Calculates the eigen decomposition of the given real matrix.EigenDecomposition(RealMatrix matrix, double splitTolerance) Deprecated.in 3.1 (to be removed in 4.0) due to unused parameter -
Uses of MathArithmeticException in org.apache.commons.math3.stat.inference
Methods in org.apache.commons.math3.stat.inference that throw MathArithmeticExceptionModifier and TypeMethodDescriptiondoubleKolmogorovSmirnovTest.cdf(double d, int n) Calculates \(P(D_n invalid input: '<' d)\) using the method described in [1] with quick decisions for extreme values given in [2] (see above).doubleKolmogorovSmirnovTest.cdf(double d, int n, boolean exact) CalculatesP(D_n < d)using method described in [1] with quick decisions for extreme values given in [2] (see above).doubleKolmogorovSmirnovTest.cdfExact(double d, int n) CalculatesP(D_n < d). -
Uses of MathArithmeticException in org.apache.commons.math3.util
Methods in org.apache.commons.math3.util that throw MathArithmeticExceptionModifier and TypeMethodDescriptionstatic intArithmeticUtils.addAndCheck(int x, int y) Add two integers, checking for overflow.static longArithmeticUtils.addAndCheck(long a, long b) Add two long integers, checking for overflow.static intFastMath.addExact(int a, int b) Add two numbers, detecting overflows.static longFastMath.addExact(long a, long b) Add two numbers, detecting overflows.static longArithmeticUtils.binomialCoefficient(int n, int k) Deprecated.static longCombinatoricsUtils.binomialCoefficient(int n, int k) Returns an exact representation of the Binomial Coefficient, "n choose k", the number ofk-element subsets that can be selected from ann-element set.static doubleArithmeticUtils.binomialCoefficientDouble(int n, int k) Deprecated.static doubleCombinatoricsUtils.binomialCoefficientDouble(int n, int k) Returns adoublerepresentation of the Binomial Coefficient, "n choose k", the number ofk-element subsets that can be selected from ann-element set.static doubleArithmeticUtils.binomialCoefficientLog(int n, int k) Deprecated.static doubleCombinatoricsUtils.binomialCoefficientLog(int n, int k) Returns the naturallogof the Binomial Coefficient, "n choose k", the number ofk-element subsets that can be selected from ann-element set.static byteMathUtils.copySign(byte magnitude, byte sign) Returns the first argument with the sign of the second argument.static intMathUtils.copySign(int magnitude, int sign) Returns the first argument with the sign of the second argument.static longMathUtils.copySign(long magnitude, long sign) Returns the first argument with the sign of the second argument.static shortMathUtils.copySign(short magnitude, short sign) Returns the first argument with the sign of the second argument.static intFastMath.decrementExact(int n) Decrement a number, detecting overflows.static longFastMath.decrementExact(long n) Decrement a number, detecting overflows.Compute this ÷ a.static longArithmeticUtils.factorial(int n) Deprecated.static longCombinatoricsUtils.factorial(int n) Returns n!.static intFastMath.floorDiv(int a, int b) Finds q such that a = q b + r with 0 invalid input: '<'= r invalid input: '<' b if b > 0 and b invalid input: '<' r invalid input: '<'= 0 if b invalid input: '<' 0.static longFastMath.floorDiv(long a, long b) Finds q such that a = q b + r with 0 invalid input: '<'= r invalid input: '<' b if b > 0 and b invalid input: '<' r invalid input: '<'= 0 if b invalid input: '<' 0.static intFastMath.floorMod(int a, int b) Finds r such that a = q b + r with 0 invalid input: '<'= r invalid input: '<' b if b > 0 and b invalid input: '<' r invalid input: '<'= 0 if b invalid input: '<' 0.static intArithmeticUtils.gcd(int p, int q) Computes the greatest common divisor of the absolute value of two numbers, using a modified version of the "binary gcd" method.static longArithmeticUtils.gcd(long p, long q) Gets the greatest common divisor of the absolute value of two numbers, using the "binary gcd" method which avoids division and modulo operations.static intFastMath.incrementExact(int n) Increment a number, detecting overflows.static longFastMath.incrementExact(long n) Increment a number, detecting overflows.static intArithmeticUtils.lcm(int a, int b) Returns the least common multiple of the absolute value of two numbers, using the formulalcm(a,b) = (a / gcd(a,b)) * b.static longArithmeticUtils.lcm(long a, long b) Returns the least common multiple of the absolute value of two numbers, using the formulalcm(a,b) = (a / gcd(a,b)) * b.static intArithmeticUtils.mulAndCheck(int x, int y) Multiply two integers, checking for overflow.static longArithmeticUtils.mulAndCheck(long a, long b) Multiply two long integers, checking for overflow.static double[]MathArrays.normalizeArray(double[] values, double normalizedSum) Normalizes an array to make it sum to a specified value.static intArithmeticUtils.pow(int k, int e) Raise an int to an int power.static longArithmeticUtils.pow(long k, int e) Raise a long to an int power.BigReal.reciprocal()Returns the multiplicative inverse ofthiselement.static floatPrecision.round(float x, int scale, int roundingMethod) Rounds the given value to the specified number of decimal places.static longArithmeticUtils.stirlingS2(int n, int k) Deprecated.static longCombinatoricsUtils.stirlingS2(int n, int k) Returns the Stirling number of the second kind, "S(n,k)", the number of ways of partitioning ann-element set intoknon-empty subsets.static intArithmeticUtils.subAndCheck(int x, int y) Subtract two integers, checking for overflow.static longArithmeticUtils.subAndCheck(long a, long b) Subtract two long integers, checking for overflow.static intFastMath.toIntExact(long n) Convert a long to interger, detecting overflows
Plane(Vector3D, double)