Package org.drip.function.r1tor1custom
Class LinearRationalShapeControl
java.lang.Object
org.drip.function.definition.R1ToR1
org.drip.function.r1tor1custom.LinearRationalShapeControl
public class LinearRationalShapeControl extends R1ToR1
LinearRationalShapeControl implements the deterministic rational shape control functionality on top
of the estimator basis splines inside - [0,...,1) - Globally [x_0,...,x_1):
y = 1 / [1 + lambda * x]
where is the normalized ordinate mapped as x === (x - x_i-1) / (x_i - x_i-1)
y = 1 / [1 + lambda * x]
where is the normalized ordinate mapped as x === (x - x_i-1) / (x_i - x_i-1)
- Module = Computational Core Module
- Library = Numerical Analysis Library
- Project = Rd To Rd Function Analysis
- Package = Built-in R1 To R1 Functions
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description LinearRationalShapeControl(double dblLambda)LinearRationalShapeControl constructor -
Method Summary
Modifier and Type Method Description doublederivative(double dblX, int iOrder)Calculate the derivative as a doubledoubleevaluate(double dblX)Evaluate for the given variatedoublegetShapeControlCoefficient()Retrieve the shape control coefficientdoubleintegrate(double dblBegin, double dblEnd)Integrate over the given rangeMethods inherited from class org.drip.function.definition.R1ToR1
antiDerivative, conditionNumber, differential, differential, maxima, maxima, minima, minima, poleResidueMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
LinearRationalShapeControl
public LinearRationalShapeControl(double dblLambda) throws java.lang.ExceptionLinearRationalShapeControl constructor- Parameters:
dblLambda- Tension Parameter- Throws:
java.lang.Exception- Thrown if the inputs are invalid
-
-
Method Details
-
evaluate
public double evaluate(double dblX) throws java.lang.ExceptionDescription copied from class:R1ToR1Evaluate for the given variate -
derivative
public double derivative(double dblX, int iOrder) throws java.lang.ExceptionDescription copied from class:R1ToR1Calculate the derivative as a double- Overrides:
derivativein classR1ToR1- Parameters:
dblX- Variate at which the derivative is to be calculatediOrder- Order of the derivative to be computed- Returns:
- The Derivative
- Throws:
java.lang.Exception- Thrown if Inputs are Invalid
-
integrate
public double integrate(double dblBegin, double dblEnd) throws java.lang.ExceptionDescription copied from class:R1ToR1Integrate over the given range -
getShapeControlCoefficient
public double getShapeControlCoefficient()Retrieve the shape control coefficient- Returns:
- Shape control coefficient
-