1 18 19 package org.apache.commons.math.analysis; 20 21 import org.apache.commons.math.analysis.derivative.BackwardDifferenceDerivative; 22 import org.apache.commons.math.analysis.derivative.CenterDifferenceDerivative; 23 import org.apache.commons.math.analysis.derivative.ForwardDifferenceDerivative; 24 25 29 public class UnivariateRealFunctionUtils { 30 31 34 private UnivariateRealFunctionUtils() { 35 super(); 36 } 37 38 public static UnivariateRealFunction backwardDifferenceDerivative(UnivariateRealFunction function, double delta) { 39 return BackwardDifferenceDerivative.decorate(function, delta); 40 } 41 42 public static UnivariateRealFunction centerDifferenceDerivative(UnivariateRealFunction function, double delta) { 43 return CenterDifferenceDerivative.decorate(function, delta); 44 } 45 46 public static UnivariateRealFunction forwardDifferenceDerivative(UnivariateRealFunction function, double delta) { 47 return ForwardDifferenceDerivative.decorate(function, delta); 48 } 49 } 50 | Popular Tags |