Uses of Interface
org.hipparchus.analysis.UnivariateFunction
-
Packages that use UnivariateFunction Package Description org.hipparchus.analysis Parent package for common numerical analysis procedures, including root finding, function interpolation and integration.org.hipparchus.analysis.differentiation This package holds the main interfaces and basic building block classes dealing with differentiation.org.hipparchus.analysis.function Thefunction
package contains function objects that wrap the methods contained inMath
, as well as common mathematical functions such as the gaussian and sinc functions.org.hipparchus.analysis.integration Numerical integration (quadrature) algorithms for univariate real functions.org.hipparchus.analysis.integration.gauss Gauss family of quadrature schemes.org.hipparchus.analysis.interpolation Univariate real functions interpolation algorithms.org.hipparchus.analysis.polynomials Univariate real polynomials implementations, seen as differentiable univariate real functions.org.hipparchus.analysis.solvers Root finding algorithms, for univariate real functions.org.hipparchus.linear Linear algebra support.org.hipparchus.ode.events Eventsorg.hipparchus.optim.univariate One-dimensional optimization algorithms.org.hipparchus.special Implementations of special functions such as Beta and Gamma.org.hipparchus.transform Implementations of transform methods, including Fast Fourier transforms. -
-
Uses of UnivariateFunction in org.hipparchus.analysis
Methods in org.hipparchus.analysis that return UnivariateFunction Modifier and Type Method Description static 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.static UnivariateFunction
FunctionUtils. derivative(UnivariateDifferentiableFunction f, int order)
Convert anUnivariateDifferentiableFunction
to anUnivariateFunction
computing nth order derivative.static 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.hipparchus.analysis with parameters of type UnivariateFunction Modifier and Type Method Description static 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.static UnivariateDifferentiableFunction
FunctionUtils. toDifferentiable(UnivariateFunction f, UnivariateFunction... derivatives)
Convert regular functions toUnivariateDifferentiableFunction
. -
Uses of UnivariateFunction in org.hipparchus.analysis.differentiation
Subinterfaces of UnivariateFunction in org.hipparchus.analysis.differentiation Modifier and Type Interface Description interface
UnivariateDifferentiableFunction
Interface for univariate functions derivatives.Methods in org.hipparchus.analysis.differentiation with parameters of type UnivariateFunction Modifier and Type Method Description UnivariateDifferentiableFunction
FiniteDifferencesDifferentiator. differentiate(UnivariateFunction function)
Create an implementation of adifferential
from a regularfunction
.UnivariateDifferentiableFunction
UnivariateFunctionDifferentiator. differentiate(UnivariateFunction function)
Create an implementation of adifferential
from a regularfunction
. -
Uses of UnivariateFunction in org.hipparchus.analysis.function
Classes in org.hipparchus.analysis.function that implement UnivariateFunction Modifier and Type Class Description class
Abs
Absolute value function.class
Acos
Arc-cosine function.class
Acosh
Hyperbolic arc-cosine function.class
Asin
Arc-sine function.class
Asinh
Hyperbolic arc-sine function.class
Atan
Arc-tangent function.class
Atanh
Hyperbolic arc-tangent function.class
Cbrt
Cube root function.class
Ceil
ceil
function.class
Constant
Constant function.class
Cos
Cosine function.class
Cosh
Hyperbolic cosine function.class
Exp
Exponential function.class
Expm1
ex-1
function.class
Floor
floor
function.class
Gaussian
Gaussian function.class
HarmonicOscillator
simple harmonic oscillator function.class
Identity
Identity function.class
Inverse
Inverse function.class
Log
Natural logarithm function.class
Log10
Base 10 logarithm function.class
Log1p
log(1 + p)
function.class
Logistic
Generalised logistic function.class
Logit
Logit function.class
Minus
Minus function.class
Power
Power function.class
Rint
rint
function.class
Sigmoid
Sigmoid function.class
Sin
Sine function.class
Sinc
Sinc function, defined byclass
Sinh
Hyperbolic sine function.class
Sqrt
Square-root function.class
StepFunction
class
Tan
Tangent function.class
Tanh
Hyperbolic tangent function.class
Ulp
ulp
function. -
Uses of UnivariateFunction in org.hipparchus.analysis.integration
Methods in org.hipparchus.analysis.integration with parameters of type UnivariateFunction Modifier and Type Method Description 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. -
Uses of UnivariateFunction in org.hipparchus.analysis.integration.gauss
Methods in org.hipparchus.analysis.integration.gauss with parameters of type UnivariateFunction Modifier and Type Method Description protected double[]
AbstractRuleFactory. findRoots(int n, UnivariateFunction ratioEvaluator)
Computes roots of the associated orthogonal polynomials.double
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.hipparchus.analysis.interpolation
Methods in org.hipparchus.analysis.interpolation that return UnivariateFunction Modifier and Type Method Description UnivariateFunction
UnivariateInterpolator. interpolate(double[] xval, double[] yval)
Compute an interpolating function for the dataset.UnivariateFunction
UnivariatePeriodicInterpolator. interpolate(double[] xval, double[] yval)
Compute an interpolating function for the dataset. -
Uses of UnivariateFunction in org.hipparchus.analysis.polynomials
Classes in org.hipparchus.analysis.polynomials that implement UnivariateFunction Modifier and Type Class Description class
PolynomialFunction
Immutable representation of a real polynomial function with real coefficients.class
PolynomialFunctionLagrangeForm
Implements the representation of a real polynomial function in Lagrange Form.class
PolynomialFunctionNewtonForm
Implements the representation of a real polynomial function in Newton Form.class
PolynomialSplineFunction
Represents a polynomial spline function.static class
SmoothStepFactory.QuadraticSmoothStepFunction
Specific smoothstep function that cannot be built using theSmoothStepFactory.getGeneralOrder(int)
.static class
SmoothStepFactory.SmoothStepFunction
Smoothstep function as defined here. -
Uses of UnivariateFunction in org.hipparchus.analysis.solvers
Classes in org.hipparchus.analysis.solvers with type parameters of type UnivariateFunction Modifier and Type Class Description class
BaseAbstractUnivariateSolver<F extends UnivariateFunction>
Provide a default implementation for several functions useful to generic solvers.interface
BaseUnivariateSolver<F extends UnivariateFunction>
Interface for (univariate real) rootfinding algorithms.interface
BracketedUnivariateSolver<F extends UnivariateFunction>
Interface for(univariate real) root-finding algorithms
that maintain a bracketed solution.Methods in org.hipparchus.analysis.solvers with parameters of type UnivariateFunction Modifier and Type Method Description static 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.BracketedUnivariateSolver.Interval
BaseSecantSolver. solveInterval(int maxEval, UnivariateFunction f, double min, double max, double startValue)
Solve for a zero in the given interval and return a tolerance interval surrounding the root.BracketedUnivariateSolver.Interval
BracketingNthOrderBrentSolver. solveInterval(int maxEval, UnivariateFunction f, double min, double max, double startValue)
Solve for a zero in the given interval and return a tolerance interval surrounding the root.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.hipparchus.analysis.solvers with type arguments of type UnivariateFunction Modifier and Type Method Description 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. -
Uses of UnivariateFunction in org.hipparchus.linear
Methods in org.hipparchus.linear with parameters of type UnivariateFunction Modifier and Type Method Description ArrayRealVector
ArrayRealVector. map(UnivariateFunction function)
Acts as if implemented as:default RealMatrix
RealMatrix. map(UnivariateFunction function)
Acts as if implemented as:RealVector
RealVector. map(UnivariateFunction function)
Acts as if implemented as:ArrayRealVector
ArrayRealVector. mapToSelf(UnivariateFunction function)
Acts as if it is implemented as:default RealMatrix
RealMatrix. mapToSelf(UnivariateFunction function)
Replace each entry by the result of applying the function to it.RealVector
RealVector. mapToSelf(UnivariateFunction function)
Acts as if it is implemented as: -
Uses of UnivariateFunction in org.hipparchus.ode.events
Methods in org.hipparchus.ode.events that return types with arguments of type UnivariateFunction Modifier and Type Method Description BracketedUnivariateSolver<UnivariateFunction>
AbstractODEDetector. getSolver()
Get the root-finding algorithm to use to detect state events.BracketedUnivariateSolver<UnivariateFunction>
ODEEventDetector. getSolver()
Get the root-finding algorithm to use to detect state events.Method parameters in org.hipparchus.ode.events with type arguments of type UnivariateFunction Modifier and Type Method Description protected abstract T
AbstractODEDetector. create(AdaptableInterval newMaxCheck, int newmaxIter, BracketedUnivariateSolver<UnivariateFunction> newSolver, ODEEventHandler newHandler)
Build a new instance.protected EventSlopeFilter<T>
EventSlopeFilter. create(AdaptableInterval newMaxCheck, int newMaxIter, BracketedUnivariateSolver<UnivariateFunction> newSolver, ODEEventHandler newHandler)
Build a new instance.T
AbstractODEDetector. withSolver(BracketedUnivariateSolver<UnivariateFunction> newSolver)
Setup the root-finding algorithm to use to detect state events.Constructor parameters in org.hipparchus.ode.events with type arguments of type UnivariateFunction Constructor Description AbstractODEDetector(AdaptableInterval maxCheck, int maxIter, BracketedUnivariateSolver<UnivariateFunction> solver, ODEEventHandler handler)
Build a new instance. -
Uses of UnivariateFunction in org.hipparchus.optim.univariate
Methods in org.hipparchus.optim.univariate that return UnivariateFunction Modifier and Type Method Description UnivariateFunction
UnivariateObjectiveFunction. getObjectiveFunction()
Gets the function to be optimized.Methods in org.hipparchus.optim.univariate with parameters of type UnivariateFunction Modifier and Type Method Description void
BracketFinder. search(UnivariateFunction func, GoalType goal, double xA, double xB)
Search new points that bracket a local optimum of the function.Constructors in org.hipparchus.optim.univariate with parameters of type UnivariateFunction Constructor Description UnivariateObjectiveFunction(UnivariateFunction f)
Simple constructor. -
Uses of UnivariateFunction in org.hipparchus.special
Classes in org.hipparchus.special that implement UnivariateFunction Modifier and Type Class Description class
BesselJ
This class provides computation methods related to Bessel functions of the first kind. -
Uses of UnivariateFunction in org.hipparchus.transform
Methods in org.hipparchus.transform with parameters of type UnivariateFunction Modifier and Type Method Description 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.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.
-