Class UnivariateReciprocal

java.lang.Object
org.drip.function.definition.R1ToR1
org.drip.function.r1tor1.UnivariateReciprocal

public class UnivariateReciprocal
extends R1ToR1
UnivariateReciprocal provides the evaluation 1/f(x) instead of f(x) for a given f.

Author:
Lakshmi Krishnamurthy
  • Constructor Details

    • UnivariateReciprocal

      public UnivariateReciprocal​(R1ToR1 au) throws java.lang.Exception
      UnivariateReciprocal constructor
      Parameters:
      au - Univariate Function
      Throws:
      java.lang.Exception - Thrown if the input is invalid
  • Method Details

    • evaluate

      public double evaluate​(double dblVariate) throws java.lang.Exception
      Description copied from class: R1ToR1
      Evaluate for the given variate
      Specified by:
      evaluate in class R1ToR1
      Parameters:
      dblVariate - Variate
      Returns:
      Returns the calculated value
      Throws:
      java.lang.Exception - Thrown if evaluation cannot be done