Uses of Interface
org.apache.commons.math3.analysis.UnivariateFunction
Packages that use UnivariateFunction
Package
Description
Parent package for common numerical analysis procedures, including root finding,
function interpolation and integration.
This package holds the main interfaces and basic building block classes
dealing with differentiation.
The
function
package contains function objects that wrap the
methods contained in Math
, as well as common
mathematical functions such as the gaussian and sinc functions.Numerical integration (quadrature) algorithms for univariate real functions.
Gauss family of quadrature schemes.
Univariate real functions interpolation algorithms.
Univariate real polynomials implementations, seen as differentiable
univariate real functions.
Root finding algorithms, for univariate real functions.
Linear algebra support.
Neural networks.
One-dimensional optimization algorithms.
Univariate real functions minimum finding algorithms.
Implementations of special functions such as Beta and Gamma.
Implementations of transform methods, including Fast Fourier transforms.
-
Uses of UnivariateFunction in org.apache.commons.math3.analysis
Subinterfaces of UnivariateFunction in org.apache.commons.math3.analysisMethods in org.apache.commons.math3.analysis that return UnivariateFunctionModifier and TypeMethodDescriptionstatic UnivariateFunction
FunctionUtils.add
(UnivariateFunction... f) Adds functions.static UnivariateFunction
FunctionUtils.combine
(BivariateFunction combiner, UnivariateFunction f, UnivariateFunction g) Returns the univariate functionh(x) = combiner(f(x), g(x)).
static UnivariateFunction
FunctionUtils.compose
(UnivariateFunction... f) Composes functions.DifferentiableUnivariateFunction.derivative()
Deprecated.Returns the derivative of the functionstatic UnivariateFunction
FunctionUtils.fix1stArgument
(BivariateFunction f, double fixed) Creates a unary function by fixing the first argument of a binary function.static UnivariateFunction
FunctionUtils.fix2ndArgument
(BivariateFunction f, double fixed) Creates a unary function by fixing the second argument of a binary function.static UnivariateFunction
FunctionUtils.multiply
(UnivariateFunction... f) Multiplies functions.Methods in org.apache.commons.math3.analysis with parameters of type UnivariateFunctionModifier and TypeMethodDescriptionstatic UnivariateFunction
FunctionUtils.add
(UnivariateFunction... f) Adds functions.static MultivariateFunction
FunctionUtils.collector
(BivariateFunction combiner, UnivariateFunction f, double initialValue) Returns a MultivariateFunction h(x[]) defined bystatic UnivariateFunction
FunctionUtils.combine
(BivariateFunction combiner, UnivariateFunction f, UnivariateFunction g) Returns the univariate functionh(x) = combiner(f(x), g(x)).
static UnivariateFunction
FunctionUtils.compose
(UnivariateFunction... f) Composes functions.static UnivariateFunction
FunctionUtils.multiply
(UnivariateFunction... f) Multiplies functions.static double[]
FunctionUtils.sample
(UnivariateFunction f, double min, double max, int n) Samples the specified univariate real function on the specified interval. -
Uses of UnivariateFunction in org.apache.commons.math3.analysis.differentiation
Subinterfaces of UnivariateFunction in org.apache.commons.math3.analysis.differentiationModifier and TypeInterfaceDescriptioninterface
Interface for univariate functions derivatives.Methods in org.apache.commons.math3.analysis.differentiation with parameters of type UnivariateFunctionModifier and TypeMethodDescriptionFiniteDifferencesDifferentiator.differentiate
(UnivariateFunction function) Create an implementation of adifferential
from a regularfunction
.UnivariateFunctionDifferentiator.differentiate
(UnivariateFunction function) Create an implementation of adifferential
from a regularfunction
. -
Uses of UnivariateFunction in org.apache.commons.math3.analysis.function
Classes in org.apache.commons.math3.analysis.function that implement UnivariateFunctionModifier and TypeClassDescriptionclass
Absolute value function.class
Arc-cosine function.class
Hyperbolic arc-cosine function.class
Arc-sine function.class
Hyperbolic arc-sine function.class
Arc-tangent function.class
Hyperbolic arc-tangent function.class
Cube root function.class
ceil
function.class
Constant function.class
Cosine function.class
Hyperbolic cosine function.class
Exponential function.class
ex-1
function.class
floor
function.class
Gaussian function.class
simple harmonic oscillator function.class
Identity function.class
Inverse function.class
Natural logarithm function.class
Base 10 logarithm function.class
log(1 + p)
function.class
Generalised logistic function.class
Logit function.class
Minus function.class
Power function.class
rint
function.class
Sigmoid function.class
signum
function.class
Sine function.class
Sinc function, defined byclass
Hyperbolic sine function.class
Square-root function.class
class
Tangent function.class
Hyperbolic tangent function.class
ulp
function.Methods in org.apache.commons.math3.analysis.function that return UnivariateFunctionModifier and TypeMethodDescriptionAcos.derivative()
Deprecated.as of 3.1, replaced byAcos.value(DerivativeStructure)
Acosh.derivative()
Deprecated.as of 3.1, replaced byAcosh.value(DerivativeStructure)
Asin.derivative()
Deprecated.as of 3.1, replaced byAsin.value(DerivativeStructure)
Asinh.derivative()
Deprecated.as of 3.1, replaced byAsinh.value(DerivativeStructure)
Atan.derivative()
Deprecated.as of 3.1, replaced byAtan.value(DerivativeStructure)
Atanh.derivative()
Deprecated.as of 3.1, replaced byAtanh.value(DerivativeStructure)
Cbrt.derivative()
Deprecated.as of 3.1, replaced byCbrt.value(DerivativeStructure)
Cos.derivative()
Deprecated.as of 3.1, replaced byCos.value(DerivativeStructure)
Exp.derivative()
Deprecated.as of 3.1, replaced byExp.value(DerivativeStructure)
Expm1.derivative()
Deprecated.as of 3.1, replaced byExpm1.value(DerivativeStructure)
Gaussian.derivative()
Deprecated.as of 3.1, replaced byGaussian.value(DerivativeStructure)
HarmonicOscillator.derivative()
Deprecated.as of 3.1, replaced byHarmonicOscillator.value(DerivativeStructure)
Inverse.derivative()
Deprecated.as of 3.1, replaced byInverse.value(DerivativeStructure)
Log.derivative()
Deprecated.as of 3.1, replaced byLog.value(DerivativeStructure)
Log10.derivative()
Deprecated.as of 3.1, replaced byLog10.value(DerivativeStructure)
Log1p.derivative()
Deprecated.as of 3.1, replaced byLog1p.value(DerivativeStructure)
Logistic.derivative()
Deprecated.as of 3.1, replaced byLogistic.value(DerivativeStructure)
Logit.derivative()
Deprecated.as of 3.1, replaced byLogit.value(DerivativeStructure)
Power.derivative()
Deprecated.as of 3.1, replaced byPower.value(DerivativeStructure)
Sigmoid.derivative()
Deprecated.as of 3.1, replaced bySigmoid.value(DerivativeStructure)
Sinc.derivative()
Deprecated.as of 3.1, replaced bySinc.value(DerivativeStructure)
Sqrt.derivative()
Deprecated.as of 3.1, replaced bySqrt.value(DerivativeStructure)
Tan.derivative()
Deprecated.as of 3.1, replaced byTan.value(DerivativeStructure)
Tanh.derivative()
Deprecated.as of 3.1, replaced byTanh.value(DerivativeStructure)
-
Uses of UnivariateFunction in org.apache.commons.math3.analysis.integration
Methods in org.apache.commons.math3.analysis.integration with parameters of type UnivariateFunctionModifier and TypeMethodDescriptiondouble
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. -
Uses of UnivariateFunction in org.apache.commons.math3.analysis.integration.gauss
Methods in org.apache.commons.math3.analysis.integration.gauss with parameters of type UnivariateFunctionModifier and TypeMethodDescriptiondouble
GaussIntegrator.integrate
(UnivariateFunction f) Returns an estimate of the integral off(x) * w(x)
, wherew
is a weight function that depends on the actual flavor of the Gauss integration scheme.double
SymmetricGaussIntegrator.integrate
(UnivariateFunction f) Returns an estimate of the integral off(x) * w(x)
, wherew
is a weight function that depends on the actual flavor of the Gauss integration scheme. -
Uses of UnivariateFunction in org.apache.commons.math3.analysis.interpolation
Methods in org.apache.commons.math3.analysis.interpolation that return UnivariateFunctionModifier and TypeMethodDescriptionUnivariateInterpolator.interpolate
(double[] xval, double[] yval) Compute an interpolating function for the dataset.UnivariatePeriodicInterpolator.interpolate
(double[] xval, double[] yval) Compute an interpolating function for the dataset. -
Uses of UnivariateFunction in org.apache.commons.math3.analysis.polynomials
Classes in org.apache.commons.math3.analysis.polynomials that implement UnivariateFunctionModifier and TypeClassDescriptionclass
Immutable representation of a real polynomial function with real coefficients.class
Implements the representation of a real polynomial function in Lagrange Form.class
Implements the representation of a real polynomial function in Newton Form.class
Represents a polynomial spline function.Methods in org.apache.commons.math3.analysis.polynomials that return UnivariateFunctionModifier and TypeMethodDescriptionPolynomialFunction.derivative()
Returns the derivative as aUnivariateFunction
.PolynomialSplineFunction.derivative()
Get the derivative of the polynomial spline function. -
Uses of UnivariateFunction in org.apache.commons.math3.analysis.solvers
Classes in org.apache.commons.math3.analysis.solvers with type parameters of type UnivariateFunctionModifier and TypeClassDescriptionclass
BaseAbstractUnivariateSolver<FUNC extends UnivariateFunction>
Provide a default implementation for several functions useful to generic solvers.interface
BaseUnivariateSolver<FUNC extends UnivariateFunction>
Interface for (univariate real) rootfinding algorithms.interface
BracketedUnivariateSolver<FUNC extends UnivariateFunction>
Interface for(univariate real) root-finding algorithms
that maintain a bracketed solution.Methods in org.apache.commons.math3.analysis.solvers with parameters of type UnivariateFunctionModifier and TypeMethodDescriptionstatic double[]
UnivariateSolverUtils.bracket
(UnivariateFunction function, double initial, double lowerBound, double upperBound) This method simply callsbracket(function, initial, lowerBound, upperBound, q, r, maximumIterations)
withq
andr
set to 1.0 andmaximumIterations
set toInteger.MAX_VALUE
.static double[]
UnivariateSolverUtils.bracket
(UnivariateFunction function, double initial, double lowerBound, double upperBound, double q, double r, int maximumIterations) This method attempts to find two values a and b satisfyinglowerBound <= a < initial < b <= upperBound
f(a) * f(b) <= 0
Iff
is continuous on[a,b]
, this means thata
andb
bracket a root off
.static double[]
UnivariateSolverUtils.bracket
(UnivariateFunction function, double initial, double lowerBound, double upperBound, int maximumIterations) This method simply callsbracket(function, initial, lowerBound, upperBound, q, r, maximumIterations)
withq
andr
set to 1.0.static double
UnivariateSolverUtils.forceSide
(int maxEval, UnivariateFunction f, BracketedUnivariateSolver<UnivariateFunction> bracketing, double baseRoot, double min, double max, AllowedSolution allowedSolution) Force a root found by a non-bracketing solver to lie on a specified side, as if the solver were a bracketing one.static boolean
UnivariateSolverUtils.isBracketing
(UnivariateFunction function, double lower, double upper) Check whether the interval bounds bracket a root.double
BaseSecantSolver.solve
(int maxEval, UnivariateFunction f, double min, double max, double startValue) Solve for a zero in the given interval, start atstartValue
.double
BaseSecantSolver.solve
(int maxEval, UnivariateFunction f, double min, double max, double startValue, AllowedSolution allowedSolution) Solve for a zero in the given interval, start atstartValue
.double
BaseSecantSolver.solve
(int maxEval, UnivariateFunction f, double min, double max, AllowedSolution allowedSolution) Solve for a zero in the given interval.double
BracketingNthOrderBrentSolver.solve
(int maxEval, UnivariateFunction f, double min, double max, double startValue, AllowedSolution allowedSolution) Solve for a zero in the given interval, start atstartValue
.double
BracketingNthOrderBrentSolver.solve
(int maxEval, UnivariateFunction f, double min, double max, AllowedSolution allowedSolution) Solve for a zero in the given interval.static double
UnivariateSolverUtils.solve
(UnivariateFunction function, double x0, double x1) Convenience method to find a zero of a univariate real function.static double
UnivariateSolverUtils.solve
(UnivariateFunction function, double x0, double x1, double absoluteAccuracy) Convenience method to find a zero of a univariate real function.static void
UnivariateSolverUtils.verifyBracketing
(UnivariateFunction function, double lower, double upper) Check that the endpoints specify an interval and the end points bracket a root.Method parameters in org.apache.commons.math3.analysis.solvers with type arguments of type UnivariateFunctionModifier and TypeMethodDescriptionstatic double
UnivariateSolverUtils.forceSide
(int maxEval, UnivariateFunction f, BracketedUnivariateSolver<UnivariateFunction> bracketing, double baseRoot, double min, double max, AllowedSolution allowedSolution) Force a root found by a non-bracketing solver to lie on a specified side, as if the solver were a bracketing one. -
Uses of UnivariateFunction in org.apache.commons.math3.linear
Methods in org.apache.commons.math3.linear with parameters of type UnivariateFunctionModifier and TypeMethodDescriptionArrayRealVector.map
(UnivariateFunction function) Acts as if implemented as:RealVector.map
(UnivariateFunction function) Acts as if implemented as:ArrayRealVector.mapToSelf
(UnivariateFunction function) Acts as if it is implemented as:RealVector.mapToSelf
(UnivariateFunction function) Acts as if it is implemented as: -
Uses of UnivariateFunction in org.apache.commons.math3.ml.neuralnet
Methods in org.apache.commons.math3.ml.neuralnet with parameters of type UnivariateFunctionModifier and TypeMethodDescriptionstatic FeatureInitializer
FeatureInitializerFactory.function
(UnivariateFunction f, double init, double inc) Creates an initializer from a univariate functionf(x)
. -
Uses of UnivariateFunction in org.apache.commons.math3.optim.univariate
Methods in org.apache.commons.math3.optim.univariate that return UnivariateFunctionModifier and TypeMethodDescriptionUnivariateObjectiveFunction.getObjectiveFunction()
Gets the function to be optimized.Methods in org.apache.commons.math3.optim.univariate with parameters of type UnivariateFunctionModifier and TypeMethodDescriptionvoid
BracketFinder.search
(UnivariateFunction func, GoalType goal, double xA, double xB) Search new points that bracket a local optimum of the function.Constructors in org.apache.commons.math3.optim.univariate with parameters of type UnivariateFunction -
Uses of UnivariateFunction in org.apache.commons.math3.optimization.univariate
Classes in org.apache.commons.math3.optimization.univariate with type parameters of type UnivariateFunctionModifier and TypeInterfaceDescriptioninterface
BaseUnivariateOptimizer<FUNC extends UnivariateFunction>
Deprecated.As of 3.1 (to be removed in 4.0).class
UnivariateMultiStartOptimizer<FUNC extends UnivariateFunction>
Deprecated.As of 3.1 (to be removed in 4.0).Methods in org.apache.commons.math3.optimization.univariate with parameters of type UnivariateFunctionModifier and TypeMethodDescriptionBaseAbstractUnivariateOptimizer.optimize
(int maxEval, UnivariateFunction f, GoalType goalType, double min, double max) Deprecated.Find an optimum in the given interval.BaseAbstractUnivariateOptimizer.optimize
(int maxEval, UnivariateFunction f, GoalType goalType, double min, double max, double startValue) Deprecated.Find an optimum in the given interval, start at startValue.void
BracketFinder.search
(UnivariateFunction func, GoalType goal, double xA, double xB) Deprecated.Search new points that bracket a local optimum of the function. -
Uses of UnivariateFunction in org.apache.commons.math3.special
Classes in org.apache.commons.math3.special that implement UnivariateFunctionModifier and TypeClassDescriptionclass
This class provides computation methods related to Bessel functions of the first kind. -
Uses of UnivariateFunction in org.apache.commons.math3.transform
Methods in org.apache.commons.math3.transform with parameters of type UnivariateFunctionModifier and TypeMethodDescriptiondouble[]
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.Complex[]
FastFourierTransformer.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[]
FastHadamardTransformer.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[]
FastSineTransformer.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
(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.
UnivariateDifferentiableFunction