org.apache.commons.nabla.numerical
Class TwoPointsScheme
java.lang.Object
org.apache.commons.nabla.numerical.FiniteDifferencesDifferentiator
org.apache.commons.nabla.numerical.TwoPointsScheme
- All Implemented Interfaces:
- Serializable, UnivariateDifferentiator
public class TwoPointsScheme
- extends FiniteDifferencesDifferentiator
Two-points finite differences scheme.
The error model for the two-points scheme is
h2/6 f(3)(x) + O(h4)
.
- See Also:
- Serialized Form
Constructor Summary |
TwoPointsScheme(double h)
Build a 2-points finite differences scheme. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TwoPointsScheme
public TwoPointsScheme(double h)
- Build a 2-points finite differences scheme.
- Parameters:
h
- differences step size
differentiate
public UnivariateDerivative differentiate(UnivariateDifferentiable d)
- Create an implementation of a differential for a
differentiable function
.
- Parameters:
d
- differentiable function to differentiate
- Returns:
- derivative function
Copyright © 2008-2009 The Apache Software Foundation. All Rights Reserved.