Package org.drip.spline.tension
Class KLKHyperbolicTensionPhy
java.lang.Object
org.drip.function.definition.R1ToR1
org.drip.spline.tension.KLKHyperbolicTensionPhy
public class KLKHyperbolicTensionPhy extends R1ToR1
KLKHyperbolicTensionPhy implements the basic framework and the family of C2 Tension Splines
outlined in Koch and Lyche (1989), Koch and Lyche (1993), and Kvasov (2000) Papers.
KLKHyperbolicTensionPsy implements the custom evaluator, differentiator, and integrator for the KLK
Tension Phy Functions outlined in the publications above.
- KLKHyperbolicTensionPhy constructor
- Retrieve the Tension Parameter
Module | Product Core Module |
Library | Fixed Income Analytics |
Project | Basis Splines and Linear Compounders across a Broad Family of Spline Basis Functions |
Package | Koch Lyche Kvasov Tension Splines |
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description KLKHyperbolicTensionPhy(double tension)
KLKHyperbolicTensionPhy constructor -
Method Summary
Modifier and Type Method Description double
derivative(double variate, int order)
Calculate the derivative as a doubledouble
evaluate(double variate)
Evaluate for the given variatedouble
getTension()
Retrieve the Tension Parameterdouble
integrate(double begin, double end)
Integrate over the given rangeMethods inherited from class org.drip.function.definition.R1ToR1
antiDerivative, conditionNumber, differential, differential, maxima, maxima, minima, minima, poleResidue
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
KLKHyperbolicTensionPhy
public KLKHyperbolicTensionPhy(double tension) throws java.lang.ExceptionKLKHyperbolicTensionPhy constructor- Parameters:
tension
- Tension of the HyperbolicTension Function- Throws:
java.lang.Exception
- Thrown if the input is invalid
-
-
Method Details
-
evaluate
public double evaluate(double variate) throws java.lang.ExceptionDescription copied from class:R1ToR1
Evaluate for the given variate -
derivative
public double derivative(double variate, int order) throws java.lang.ExceptionDescription copied from class:R1ToR1
Calculate the derivative as a double- Overrides:
derivative
in classR1ToR1
- Parameters:
variate
- Variate at which the derivative is to be calculatedorder
- Order of the derivative to be computed- Returns:
- The Derivative
- Throws:
java.lang.Exception
- Thrown if Inputs are Invalid
-
integrate
public double integrate(double begin, double end) throws java.lang.ExceptionDescription copied from class:R1ToR1
Integrate over the given range -
getTension
public double getTension()Retrieve the Tension Parameter- Returns:
- Tension Parameter
-