Class PSeriesTerm

java.lang.Object
org.drip.specialfunction.lanczos.PSeriesTerm
All Implemented Interfaces:
R0ToR1SeriesTerm

public class PSeriesTerm
extends java.lang.Object
implements R0ToR1SeriesTerm
PSeriesTerm holds a Single Term of the Lanczos P Series. The References are:

  • Godfrey, P. (2001): Lanczos Implementation of the Gamma Function http://www.numericana.com/answer/info/godfrey.htm
  • Press, W. H., S. A. Teukolsky, W. T. Vetterling, and B. P. Flannery (2007): Numerical Recipes: The Art of Scientific Computing 3rd Edition Cambridge University Press New York
  • Pugh, G. R. (2004): An Analysis of the Lanczos Gamma Approximation Ph. D. University of British Columbia
  • Toth V. T. (2016): Programmable Calculators – The Gamma Function http://www.rskey.org/CMS/index.php/the-library/11
  • Wikipedia (2019): Lanczos Approximation https://en.wikipedia.org/wiki/Lanczos_approximation
It provides the following functionality:
  • PSeriesTerm Constructor
  • Retrieve Lanczos g Control

Module Computational Core Module
Library Function Analysis Library
Project Special Function Implementation and Analysis
Package Lanczos Scheme for Gamma Estimate
Author:
Lakshmi Krishnamurthy
  • Constructor Summary

    Constructors
    Constructor Description
    PSeriesTerm​(int g)
    PSeriesTerm Constructor
  • Method Summary

    Modifier and Type Method Description
    int g()
    Retrieve Lanczos g Control
    double value​(int order)
    Compute the Ordered Term in the Series

    Methods inherited from class java.lang.Object

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

    • PSeriesTerm

      public PSeriesTerm​(int g) throws java.lang.Exception
      PSeriesTerm Constructor
      Parameters:
      g - Lanczos g Control
      Throws:
      java.lang.Exception - Thrown if the Inputs are Invalid
  • Method Details

    • g

      public int g()
      Retrieve Lanczos g Control
      Returns:
      The Lanczos g Control
    • value

      public double value​(int order) throws java.lang.Exception
      Description copied from interface: R0ToR1SeriesTerm
      Compute the Ordered Term in the Series
      Specified by:
      value in interface R0ToR1SeriesTerm
      Parameters:
      order - Order of the Term
      Returns:
      The Value of the Ordered Term in the Series
      Throws:
      java.lang.Exception - Thrown if the Inputs are Invalid