FreeHEP API
Version current

hep.aida.ref.pdf
Class FunctionDerivative

java.lang.Object
  extended byhep.aida.ref.pdf.FunctionDerivative

public abstract class FunctionDerivative
extends Object

Author:
The FreeHEP team @ SLAC
Source Code:
FunctionDerivative.java

Constructor Summary
FunctionDerivative()
           
 
Method Summary
static double derivative(Function f, Variable x, double h)
          Computes the derivative of a function with respect to one argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionDerivative

public FunctionDerivative()
Method Detail

derivative

public static double derivative(Function f,
                                Variable x,
                                double h)
Computes the derivative of a function with respect to one argument. Adapted from Numerical Recipes in FORTRAN dfridr, pp. 182-183.

Parameters:
f - a JAIDA IFunction
x - a double[] with the point where the derivative is evaluated
h - a typical step size for x[ind]
Returns:
the value of df/dx[ind] at x[]

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.