Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/commons-math
/ functions
Functions
9,190 in github.com/apache/commons-math
⨍
Functions
9,190
◇
Types & classes
1,311
↓ 3,323 callers
Method
assertEquals
verifies that two vectors are close (sup norm)
commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/SparseFieldVectorTest.java:222
↓ 1,607 callers
Method
of
(double x)
commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/Dfp25.java:34
↓ 1,520 callers
Method
add
Returns the sum of {@code this} and {@code m}. @param m matrix to be added @return {@code this + m} @throws MatrixDimensionMismatchException if {@cod
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/RealMatrix.java:67
↓ 1,139 callers
Method
multiply
Returns the result of postmultiplying {@code this} by {@code m}. @param m matrix to postmultiply by @return {@code this m} @throws DimensionMismatchE
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/RealMatrix.java:106
↓ 1,050 callers
Method
newDfp
Makes a {@link Dfp} with a value of 0. @return a new {@link Dfp} with a value of 0
commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/dfp/DfpField.java:333
↓ 1,015 callers
Method
assertTrue
(boolean condition)
src/userguide/java/org/apache/commons/math4/userguide/JdkMathTestPerformance.java:78
↓ 981 callers
Method
assertEquals
Verifies that expected and actual are within delta, or are both NaN or infinities of the same sign.
commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/TestUtils.java:52
↓ 889 callers
Method
fail
(LeastSquaresOptimizer optimizer)
commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/AbstractLeastSquaresOptimizerAbstractTest.java:84
↓ 707 callers
Method
getEntry
Get the entry in the specified row and column. Row and column indices start at 0. @param row Row index of entry to be fetched. @param column Column i
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/RealMatrix.java:421
↓ 649 callers
Method
assertEquals
(SummaryStatistics summary, SummaryStatistics summary2)
commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/stat/descriptive/SummaryStatisticsTest.java:176
↓ 645 callers
Method
abs
@param x Number. @return abs(x). @see Math#abs(int)
commons-math-core/src/main/java/org/apache/commons/math4/core/jdkmath/JdkMath.java:404
↓ 546 callers
Method
subtract
Returns {@code this} minus {@code m}. @param m matrix to be subtracted @return {@code this - m} @throws MatrixDimensionMismatchException if {@code m}
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/RealMatrix.java:78
↓ 442 callers
Method
getReal
Get the real value of the number. @return real value
commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/RealFieldElement.java:33
↓ 370 callers
Method
getZero
Get the additive identity of the field. <p> The additive identity is the element e<sub>0</sub> of the field such that for all elements a of the field,
commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/Field.java:38
↓ 363 callers
Method
createRealMatrix
Returns a {@link RealMatrix} with specified dimensions. <p>The type of matrix returned depends on the dimension. Below 2<sup>12</sup> elements (i.e. 4
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/MatrixUtils.java:77
↓ 356 callers
Method
getRowDimension
Gets the number of rows. @return the number of rows.
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/AnyMatrix.java:42
↓ 346 callers
Method
divide
Compute this ÷ a. @param a element to divide by @return a new element representing this ÷ a @throws NullArgumentException if {@code a} i
commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/FieldElement.java:72
↓ 343 callers
Method
getPartialDerivative
Get a partial derivative. @param orders derivation orders with respect to each variable (if all orders are 0, the value is returned) @return partial d
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/DerivativeStructure.java:263
↓ 341 callers
Method
getField
Get the type of field elements of the vector. @return type of field elements of the vector
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/FieldVector.java:63
↓ 333 callers
Method
getColumnDimension
Gets the number of columns. @return the number of columns.
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/AnyMatrix.java:49
↓ 321 callers
Method
getFinalTime
Get the final time. @return final time
commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestProblemAbstract.java:112
↓ 317 callers
Method
getValue
Get the value of the entry. @return the value of the entry.
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/RealVector.java:1042
↓ 312 callers
Method
getDimension
Returns the size of the vector. @return size
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/FieldVector.java:241
↓ 302 callers
Method
sqrt
@param x Number. @return sqrt(x). @see Math#sqrt(double)
commons-math-core/src/main/java/org/apache/commons/math4/core/jdkmath/JdkMath.java:1109
↓ 296 callers
Method
size
Get the number of elements stored in the map. @return number of elements stored in the map
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/OpenIntToFieldHashMap.java:348
↓ 273 callers
Method
append
Construct a vector by appending a vector to this vector. @param v vector to append to this one. @return a new vector
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/FieldVector.java:248
↓ 263 callers
Method
value
Compute the value for the function. @param x Abscissa for which the function value should be computed. @param y Ordinate for which the function value
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/BivariateFunction.java:36
↓ 256 callers
Method
get
()
commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/MultiStartMultivariateOptimizerTest.java:151
↓ 256 callers
Method
get
Retrieves a copy of the simplex point stored at {@code index}. @param index Location. @return the point at location {@code index}.
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/Simplex.java:231
↓ 243 callers
Method
test
(Dfp x, Dfp y, int flags, String desc)
commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/dfp/DfpTest.java:67
↓ 238 callers
Method
integrate
Integrate the differential equations up to the given time. <p>This method solves an Initial Value Problem (IVP).</p> <p>Since this method stores some
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FirstOrderIntegrator.java:61
↓ 235 callers
Method
getTime
Get time. @return time
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FieldODEState.java:93
↓ 227 callers
Method
getInitialTime
Get the initial time. @return initial time
commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestProblemAbstract.java:96
↓ 221 callers
Method
setEntry
Set the entry in the specified row and column. Row and column indices start at 0. @param row Row index of entry to be set. @param column Column index
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/RealMatrix.java:433
↓ 220 callers
Method
cmptst
(Dfp a, Dfp b, String op, boolean result, double num)
commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/dfp/DfpTest.java:376
↓ 218 callers
Method
max
@param x Number. @param y Number. @return max(x, y). @see Math#max(int,int)
commons-math-core/src/main/java/org/apache/commons/math4/core/jdkmath/JdkMath.java:791
↓ 216 callers
Method
add
Compute this + a. @param a element to add @return a new element representing this + a @throws NullArgumentException if {@code a} is {@code null}.
commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/FieldElement.java:36
↓ 211 callers
Method
fraction
Create a fraction. @param p numerator @param q denominator @return p/q computed in the instance field
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/RungeKuttaFieldIntegrator.java:95
↓ 205 callers
Method
buildArray
Build an array of elements. <p> Arrays are filled with field.getZero() @param <T> the type of the field elements @param field field to which array el
commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/MathArrays.java:791
↓ 198 callers
Method
put
Put a value associated with a key in the map. @param key key to which value is associated @param value value to put in the map @return previous value
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/OpenIntToFieldHashMap.java:414
↓ 195 callers
Method
getInitialState
Get the initial state vector. @return initial state vector
commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestProblemAbstract.java:104
↓ 179 callers
Method
equationFromString
Converts a test string to a {@link LinearConstraint}. Ex: x0 + x1 + x2 + x3 - x12 = 0
commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/optim/linear/SimplexSolverTest.java:846
↓ 173 callers
Method
create
Creates a simplex transformation. @param evaluationFunction Evaluation function. @param comparator Vertex fitness comparator. @param saAcceptance Sim
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/Simplex.java:261
↓ 169 callers
Method
getInstance
Returns the unique instance of this class. @return the unique instance of this class
commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/nonstiff/Decimal64Field.java:43
↓ 166 callers
Method
solve
Solve the linear equation A × X = B for matrices A. <p> The A matrix is implicit, it is provided by the underlying decomposition algorithm. @pa
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/DecompositionSolver.java:49
↓ 161 callers
Method
min
@param x Number. @param y Number. @return min(x, y). @see Math#min(int,int)
commons-math-core/src/main/java/org/apache/commons/math4/core/jdkmath/JdkMath.java:839
↓ 157 callers
Method
abs
absolute value. @return abs(this)
commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/RealFieldElement.java:78
↓ 144 callers
Method
toArray
Convert the vector to a T array. <p>The array is independent from vector data, it's elements are copied.</p> @return array containing a copy of vector
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/FieldVector.java:288
↓ 139 callers
Method
createVariable
Factory method creating an independent variable. @param idx index of the variable @param value value of the variable @return a new instance
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/SparseGradient.java:103
↓ 138 callers
Method
newInstance
Create an instance with a value of 0. Use this internally in preference to constructors to facilitate subclasses @return a new instance with a value o
commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/dfp/Dfp.java:549
↓ 137 callers
Method
getOne
Get the multiplicative identity of the field. <p> The multiplicative identity is the element e<sub>1</sub> of the field such that for all elements a o
commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/Field.java:48
↓ 136 callers
Method
isNaN
Returns {@code true} if {@code this} double precision number is Not-a-Number ({@code NaN}), false otherwise. @return {@code true} if {@code this} is
commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/nonstiff/Decimal64.java:312
↓ 133 callers
Method
negate
Returns the additive inverse of {@code this} element. @return the opposite of {@code this}.
commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/FieldElement.java:49
↓ 131 callers
Method
pow
@param x Number. @param y Number. @return pow(x, y). @see Math#pow(double,double)
commons-math-core/src/main/java/org/apache/commons/math4/core/jdkmath/JdkMath.java:995
↓ 130 callers
Method
getNeuron
Retrieves the neuron with the given (unique) {@code id}. @param id Identifier. @return the neuron associated with the given {@code id}. @throws NoSuc
commons-math-neuralnet/src/main/java/org/apache/commons/math4/neuralnet/Network.java:306
↓ 128 callers
Method
addStepHandler
Add a step handler to this integrator. <p>The handler will be called by the integrator for each accepted step.</p> @param handler handler for the acce
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ODEIntegrator.java:48
↓ 127 callers
Method
getNorm
Returns the <a href="https://mathworld.wolfram.com/MaximumAbsoluteRowSumNorm.html"> maximum absolute row sum norm</a> of the matrix. @return norm
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/RealMatrix.java:146
↓ 126 callers
Method
pow
Power function. Compute x^y. @param x a double @param y a double @return double
commons-math-core/src/main/java/org/apache/commons/math4/core/jdkmath/AccurateMath.java:1442
↓ 124 callers
Method
assertEquals
Check the value of a vector. @param tolerance the absolute tolerance of comparisons @param actual the vector to test @param expected the expected valu
commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/AbstractLeastSquaresOptimizerAbstractTest.java:94
↓ 117 callers
Method
point
(int n, double value)
commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/OptimTestUtils.java:80
↓ 117 callers
Method
test
(Dfp x, Dfp y, int flags, String desc)
commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/dfp/DfpMathTest.java:59
↓ 117 callers
Method
toDouble
Convert the instance into a double. @return a double approximating the instance @see #toSplitDouble()
commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/dfp/Dfp.java:2403
↓ 115 callers
Method
format
This method calls {@link #format(Object,StringBuffer,FieldPosition)}. @param c Complex object to format. @return A formatted number in the form "Re(c
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/util/ComplexFormat.java:178
↓ 111 callers
Method
fill
Sets all elements to the given value. @param value Value of the elements of the matrix. @return {@code this}.
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/field/linalg/FieldDenseMatrix.java:193
↓ 111 callers
Method
isNaN
Check if instance is not a number. @return true if instance is not a number
commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/dfp/Dfp.java:872
↓ 110 callers
Method
build
(double x)
commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/field/ExtendedFieldElementAbstractTest.java:31
↓ 109 callers
Method
test
(Dfp x, Dfp y, int flags, String desc)
commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/dfp/DfpDecTest.java:50
↓ 108 callers
Method
sin
@param x Number. @return sin(x). @see Math#sin(double)
commons-math-core/src/main/java/org/apache/commons/math4/core/jdkmath/JdkMath.java:1089
↓ 107 callers
Method
create
Creates a new instance of {@link RealVector}, with specified entries. The returned vector must be of the type currently tested. It should be noted tha
commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/RealVectorAbstractTest.java:138
↓ 107 callers
Method
getPoint
Gets the point. @return a copy of the stored point.
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/PointValuePair.java:66
↓ 106 callers
Method
sqrt
Square root. @return square root of the instance
commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/RealFieldElement.java:156
↓ 105 callers
Method
getAbsoluteAccuracy
Get the absolute accuracy of the solver. Solutions returned by the solver should be accurate to this tolerance, i.e., if ε is the absolute ac
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/BaseUnivariateSolver.java:66
↓ 105 callers
Method
getPoint
Gets the n-dimensional point. @return the point array
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/Clusterable.java:31
↓ 105 callers
Method
pow
Raises base to the power a by successive squaring. @param base number to raise @param a power @return base<sup>a</sup>
commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/dfp/DfpMath.java:208
↓ 103 callers
Method
getValue
Get the value part of the derivative structure. @return value part of the derivative structure @see #getPartialDerivative(int...)
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/DerivativeStructure.java:249
↓ 103 callers
Method
size
Gets the number of elements contained in the range. @return the size of the range.
commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/IntegerSequence.java:109
↓ 100 callers
Method
start
Start visiting a vector. This method is called once, before any entry of the vector is visited. @param dimension the size of the vector @param start
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/RealVectorChangingVisitor.java:35
↓ 99 callers
Method
optimize
Solve the non-linear least squares problem. @param leastSquaresProblem the problem definition, including model function and
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/fitting/leastsquares/LeastSquaresOptimizer.java:34
↓ 98 callers
Method
check
Checks that an object is not null. @param o Object to be checked. @param pattern Message pattern. @param args Arguments to replace the placeholders i
commons-math-legacy-exception/src/main/java/org/apache/commons/math4/legacy/exception/NullArgumentException.java:92
↓ 94 callers
Method
getEvaluations
Get the number of evaluations of the differential equations function. <p> The number of evaluations corresponds to the last call to the <code>integrat
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ODEIntegrator.java:156
↓ 92 callers
Method
getDerivative
Get the derivative with respect to a particular index variable. @param index index to differentiate with. @return derivative with respect to a partic
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/SparseGradient.java:121
↓ 92 callers
Method
getEntry
{@inheritDoc}
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/ArrayRealVector.java:597
↓ 91 callers
Method
getKey
Get the key. @return the key (first element of the pair).
commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/Pair.java:63
↓ 90 callers
Method
addValue
Adds 1 to the frequency count for v. @param v the value to add.
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/Frequency.java:100
↓ 89 callers
Method
cos
@param x Number. @return cos(x). @see Math#cos(double)
commons-math-core/src/main/java/org/apache/commons/math4/core/jdkmath/JdkMath.java:578
↓ 89 callers
Method
evaluate
Returns the result of evaluating the statistic over the input array, using the supplied weights. @param values input array @param weights array of we
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/WeightedEvaluation.java:39
↓ 89 callers
Method
multiply
Compute n × this. Multiplication by an integer number is defined as the following sum: <p>n × this = ∑<sub>i=1</sub><sup>n</sup> this.
commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/FieldElement.java:57
↓ 87 callers
Method
exp
@param x Number. @return exp(x). @see Math#exp(double)
commons-math-core/src/main/java/org/apache/commons/math4/core/jdkmath/JdkMath.java:618
↓ 84 callers
Method
sample
Generates a random value vector sampled from this distribution. @return a random value vector.
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/distribution/MultivariateRealDistribution.java:75
↓ 83 callers
Method
getValue
Get the value of the function. @return value of the function.
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/SparseGradient.java:130
↓ 83 callers
Method
transpose
Returns the transpose of this matrix. @return transpose matrix
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/RealMatrix.java:464
↓ 77 callers
Method
getField
()
commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/Dfp25.java:41
↓ 77 callers
Method
getInterpolatedState
Get the state vector of the interpolated point. <p>The returned vector is a reference to a reused array, so it should not be modified and it should be
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/StepInterpolator.java:104
↓ 74 callers
Method
log
@param x Number. @return log(x). @see Math#log(double)
commons-math-core/src/main/java/org/apache/commons/math4/core/jdkmath/JdkMath.java:760
↓ 73 callers
Method
createSparseMatrix
(double[][] data)
commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/SparseRealMatrixTest.java:686
↓ 72 callers
Method
getSolver
{@inheritDoc}
commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/solvers/SecantSolverTest.java:26
↓ 71 callers
Method
getName
Get the name of the method. @return name of the method
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ODEIntegrator.java:38
↓ 70 callers
Method
getEntry
Return the entry at the specified index. @param index Index location of entry to be fetched. @return the vector entry at {@code index}. @throws OutOf
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/RealVector.java:75
↓ 70 callers
Method
value
Simple mathematical function. <p>{@link UnivariateDifferentiableFunction} classes compute both the value and the first derivative of the function.</p>
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/UnivariateDifferentiableFunction.java:39
↓ 69 callers
Method
createSparseMatrix
(Dfp[][] data)
commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/SparseFieldMatrixTest.java:689
next →
1–100 of 9,190, ranked by callers