Class LinearDerivativeSwitch

java.lang.Object
ffx.numerics.switching.LinearDerivativeSwitch
All Implemented Interfaces:
UnivariateDiffFunction, UnivariateSwitchingFunction

public class LinearDerivativeSwitch extends Object implements UnivariateSwitchingFunction
A LinearDerivativeSwitch interpolates between 0 and 1 vi f(x) = 2*x - x^2.

The derivative is then linear in x: f'(x) = 2 - 2*x

Limiting behavior is given by: f(0) = 0, f(1) = 1, f'(0) = 2, f'(1) = 0.

Author:
Michael J. Schnieders