UnivariateDifferentiableFunction, UnivariateFunctionpublic class Sinc extends Object implements UnivariateDifferentiableFunction
sinc(x) = 1 if x = 0,
sin(x) / x otherwise.
| Constructor | Description |
|---|---|
Sinc() |
The sinc function,
sin(x) / x. |
Sinc(boolean normalized) |
Instantiates the sinc function.
|
| Modifier and Type | Method | Description |
|---|---|---|
double |
value(double x) |
Compute the value of the function.
|
DerivativeStructure |
value(DerivativeStructure t) |
Simple mathematical function.
|
public Sinc()
sin(x) / x.public Sinc(boolean normalized)
normalized - If true, the function is
sin(πx) / πx, otherwise sin(x) / x.public double value(double x)
value in interface UnivariateFunctionx - Point at which the function value should be computed.public DerivativeStructure value(DerivativeStructure t) throws DimensionMismatchException
UnivariateDifferentiableFunction classes compute both the
value and the first derivative of the function.
value in interface UnivariateDifferentiableFunctiont - function input valueDimensionMismatchException - if t is inconsistent with the
function's free parameters or orderCopyright © 2003–2017 The Apache Software Foundation. All rights reserved.