public class Constant extends Object implements UnivariateDifferentiableFunction, DifferentiableUnivariateFunction
Constructor and Description |
---|
Constant(double c) |
Modifier and Type | Method and Description |
---|---|
DifferentiableUnivariateFunction |
derivative()
Deprecated.
as of 3.1, replaced by
value(DerivativeStructure) |
DerivativeStructure |
value(DerivativeStructure t)
Simple mathematical function.
|
double |
value(double x)
Compute the value of the function.
|
public Constant(double c)
c
- Constant.public double value(double x)
value
in interface UnivariateFunction
x
- Point at which the function value should be computed.@Deprecated public DifferentiableUnivariateFunction derivative()
value(DerivativeStructure)
derivative
in interface DifferentiableUnivariateFunction
public DerivativeStructure value(DerivativeStructure t)
UnivariateDifferentiableFunction
classes compute both the
value and the first derivative of the function.
value
in interface UnivariateDifferentiableFunction
t
- function input valueCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.