Class Flat

java.lang.Object
org.drip.function.definition.R1ToR1
org.drip.function.r1tor1operator.Flat

public class Flat
extends R1ToR1
Flat implements the level constant Univariate Function.

Author:
Lakshmi Krishnamurthy
  • Constructor Summary

    Constructors
    Constructor Description
    Flat​(double dblLevel)
    Flat constructor
  • Method Summary

    Modifier and Type Method Description
    Differential differential​(double dblVariate, double dblOFBase, int iOrder)
    Calculate the Differential
    double evaluate​(double dblVariate)
    Evaluate for the given variate
    double integrate​(double dblBegin, double dblEnd)
    Integrate over the given range

    Methods inherited from class org.drip.function.definition.R1ToR1

    antiDerivative, conditionNumber, derivative, differential, maxima, maxima, minima, minima, poleResidue

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Flat

      public Flat​(double dblLevel) throws java.lang.Exception
      Flat constructor
      Parameters:
      dblLevel - The Flat Level
      Throws:
      java.lang.Exception - Thrown if the Inputs are 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
    • differential

      public Differential differential​(double dblVariate, double dblOFBase, int iOrder)
      Description copied from class: R1ToR1
      Calculate the Differential
      Overrides:
      differential in class R1ToR1
      Parameters:
      dblVariate - Variate at which the derivative is to be calculated
      dblOFBase - Base Value for the Objective Function
      iOrder - Order of the derivative to be computed
      Returns:
      The Derivative
    • integrate

      public double integrate​(double dblBegin, double dblEnd) throws java.lang.Exception
      Description copied from class: R1ToR1
      Integrate over the given range
      Overrides:
      integrate in class R1ToR1
      Parameters:
      dblBegin - Range Begin
      dblEnd - Range End
      Returns:
      The Integrated Value
      Throws:
      java.lang.Exception - Thrown if evaluation cannot be done