hep.aida.ref.pdf
Class FunctionDerivative
- java.lang.Object
-
- hep.aida.ref.pdf.FunctionDerivative
-
public abstract class FunctionDerivative extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description FunctionDerivative()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static doublederivative(Function f, Variable x, double h)Computes the derivative of a function with respect to one argument.
-
-
-
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 IFunctionx- a double[] with the point where the derivative is evaluatedind- the index of the argument of f we differentiate wrtoh- a typical step size for x[ind]- Returns:
- the value of df/dx[ind] at x[]
-
-
DMelt 3.0 © DataMelt by jWork.ORG