Class R2ToR1Series

java.lang.Object
org.drip.numerical.estimation.R2ToR1Series

public class R2ToR1Series
extends java.lang.Object
R2ToR1Series holds the R2 To R1 Expansion Terms in the Ordered Series of the Numerical Estimate for a Function. The References are:

  • Abramowitz, M., and I. A. Stegun (2007): Handbook of Mathematics Functions Dover Book on Mathematics
  • Blagouchine, I. V. (2018): Three Notes on Ser's and Hasse's Representations for the Zeta-Functions https://arxiv.org/abs/1606.02044 arXiv
  • Mezo, I., and M. E. Hoffman (2017): Zeros of the Digamma Function and its Barnes G-function Analogue Integral Transforms and Special Functions 28 (28) 846-858
  • Whitaker, E. T., and G. N. Watson (1996): A Course on Modern Analysis Cambridge University Press New York
  • Wikipedia (2019): Digamma Function https://en.wikipedia.org/wiki/Digamma_function


Author:
Lakshmi Krishnamurthy
  • Constructor Summary

    Constructors
    Constructor Description
    R2ToR1Series​(R2ToR1SeriesTerm r2ToR1SeriesTerm, boolean proportional, java.util.TreeMap<java.lang.Integer,​java.lang.Double> termWeightMap)
    R2ToR1Series Constructor
  • Method Summary

    Modifier and Type Method Description
    double cumulative​(double zeroOrder, double x, double y)
    Compute the Cumulative Series Value
    double evaluate​(double x, double y)
    Evaluate for the given x, y
    java.util.TreeMap<java.lang.Integer,​java.lang.Double> generate​(double zeroOrder, double x, double y)
    Generate the R2 To R1 Series Expansion using the Term
    boolean proportional()
    Indicate if the Rx To R1 Series Expansion Term is Proportional
    R2ToR1SeriesTerm r1ToR1SeriesTerm()
    Retrieve the R2 To R1 Series Expansion Term
    java.util.TreeMap<java.lang.Integer,​java.lang.Double> termWeightMap()
    Retrieve the Rx To R1 Series Expansion Term Weight Map

    Methods inherited from class java.lang.Object

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

    • R2ToR1Series

      public R2ToR1Series​(R2ToR1SeriesTerm r2ToR1SeriesTerm, boolean proportional, java.util.TreeMap<java.lang.Integer,​java.lang.Double> termWeightMap) throws java.lang.Exception
      R2ToR1Series Constructor
      Parameters:
      r2ToR1SeriesTerm - R2 To R1 Series Expansion Term
      proportional - TRUE - The Expansion Term is Proportional
      termWeightMap - Error Term Weight Map
      Throws:
      java.lang.Exception - Thrown if the Inputs are Invalid
  • Method Details

    • r1ToR1SeriesTerm

      public R2ToR1SeriesTerm r1ToR1SeriesTerm()
      Retrieve the R2 To R1 Series Expansion Term
      Returns:
      The R2 To R1 Series Expansion Term
    • proportional

      public boolean proportional()
      Indicate if the Rx To R1 Series Expansion Term is Proportional
      Returns:
      TRUE - The Rx To R1 Series Expansion Term is Proportional
    • termWeightMap

      public java.util.TreeMap<java.lang.Integer,​java.lang.Double> termWeightMap()
      Retrieve the Rx To R1 Series Expansion Term Weight Map
      Returns:
      The Rx To R1 Series Expansion Term Weight Map
    • generate

      public java.util.TreeMap<java.lang.Integer,​java.lang.Double> generate​(double zeroOrder, double x, double y)
      Generate the R2 To R1 Series Expansion using the Term
      Parameters:
      zeroOrder - The Zero Order Estimate
      x - X
      y - Y
      Returns:
      The R2 To R1 Series Expansion
    • cumulative

      public double cumulative​(double zeroOrder, double x, double y) throws java.lang.Exception
      Compute the Cumulative Series Value
      Parameters:
      zeroOrder - The Zero Order Estimate
      x - X
      y - Y
      Returns:
      The Cumulative Series Value
      Throws:
      java.lang.Exception - Thrown if the Inputs are Invalid
    • evaluate

      public double evaluate​(double x, double y) throws java.lang.Exception
      Evaluate for the given x, y
      Parameters:
      x - X
      y - Y
      Returns:
      Returns the calculated value
      Throws:
      java.lang.Exception - Thrown if evaluation cannot be done