Class StirlingSeriesEstimator
java.lang.Object
org.drip.function.definition.R1ToR1
org.drip.numerical.estimation.R1ToR1Estimator
org.drip.specialfunction.loggamma.StirlingSeriesEstimator
public class StirlingSeriesEstimator extends R1ToR1Estimator
StirlingSeriesEstimator implements the Stirling's Series Approximation of the Gamma Function. The
References are:
- Mortici, C. (2011): Improved Asymptotic Formulas for the Gamma Function Computers and Mathematics with Applications 61 (11) 3364-3369
- National Institute of Standards and Technology (2018): NIST Digital Library of Mathematical Functions https://dlmf.nist.gov/5.11
- Nemes, G. (2010): On the Coefficients of the Asymptotic Expansion of n! https://arxiv.org/abs/1003.2907 arXiv
- Toth V. T. (2016): Programmable Calculators – The Gamma Function http://www.rskey.org/CMS/index.php/the-library/11
- Wikipedia (2019): Stirling's Approximation https://en.wikipedia.org/wiki/Stirling%27s_approximation
- StirlingSeriesEstimator Constructor
- Compute the Log de-Moivre Term
- Compute the Bounded Function Estimates along with the Higher Order Nemes Correction
| Module | Computational Core Module |
| Library | Function Analysis Library |
| Project | Special Function Implementation and Analysis |
| Package | Analytic/Series/Integral Log Gamma Estimators |
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description StirlingSeriesEstimator(DerivativeControl derivativeControl)StirlingSeriesEstimator Constructor -
Method Summary
Modifier and Type Method Description doubleevaluate(double x)Evaluate for the given variatedoublelogDeMoivreTerm(double x)Compute the Log de-Moivre TermR1EstimatenemesCorrectionEstimate(double x)Compute the Bounded Function Estimates along with the Higher Order Nemes CorrectionMethods inherited from class org.drip.numerical.estimation.R1ToR1Estimator
boundedEstimate, seriesEstimate, seriesEstimateNativeMethods inherited from class org.drip.function.definition.R1ToR1
antiDerivative, conditionNumber, derivative, differential, differential, integrate, maxima, maxima, minima, minima, poleResidueMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
StirlingSeriesEstimator
StirlingSeriesEstimator Constructor- Parameters:
derivativeControl- The Derivative Control
-
-
Method Details
-
logDeMoivreTerm
public double logDeMoivreTerm(double x) throws java.lang.ExceptionCompute the Log de-Moivre Term- Parameters:
x- X- Returns:
- The Log de-Moivre Term
- Throws:
java.lang.Exception- Thrown if the Inputs are Invalid
-
evaluate
public double evaluate(double x) throws java.lang.ExceptionDescription copied from class:R1ToR1Evaluate for the given variate -
nemesCorrectionEstimate
Compute the Bounded Function Estimates along with the Higher Order Nemes Correction- Parameters:
x- X- Returns:
- The Bounded Function Estimates along with the Higher Order Nemes Correction
-