org.apache.commons.nabla.numerical
Class FourPointsScheme

java.lang.Object
  extended by org.apache.commons.nabla.numerical.FiniteDifferencesDifferentiator
      extended by org.apache.commons.nabla.numerical.FourPointsScheme
All Implemented Interfaces:
Serializable, UnivariateDifferentiator

public class FourPointsScheme
extends FiniteDifferencesDifferentiator

Four-points finite differences scheme. The error model for the four-points scheme is -2h4/5 f(5)(x) + O(h6).

See Also:
Serialized Form

Constructor Summary
FourPointsScheme(double h)
          Build a 4-points finite differences scheme.
 
Method Summary
 UnivariateDerivative differentiate(UnivariateDifferentiable d)
          Create an implementation of a differential for a differentiable function.
 
Methods inherited from class org.apache.commons.nabla.numerical.FiniteDifferencesDifferentiator
getOrderFirstNonCanceled, getSignedErrorScaleFactor, getStepSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FourPointsScheme

public FourPointsScheme(double h)
Build a 4-points finite differences scheme.

Parameters:
h - differences step size
Method Detail

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.