Package org.drip.spline.bspline
Class RightHatShapeControl
java.lang.Object
org.drip.function.definition.R1ToR1
org.drip.spline.bspline.TensionBasisHat
org.drip.spline.bspline.BasisHatShapeControl
org.drip.spline.bspline.RightHatShapeControl
public class RightHatShapeControl extends BasisHatShapeControl
RightHatShapeControl implements the BasisHatShapeControl interface for the right hat basis set as
laid out in the basic framework outlined in Koch and Lyche (1989), Koch and Lyche (1993), and Kvasov
(2000) Papers.
- Author:
- Lakshmi Krishnamurthy
-
Field Summary
Fields inherited from class org.drip.spline.bspline.BasisHatShapeControl
SHAPE_CONTROL_RATIONAL_EXPONENTIAL, SHAPE_CONTROL_RATIONAL_LINEAR, SHAPE_CONTROL_RATIONAL_QUADRATIC -
Constructor Summary
Constructors Constructor Description RightHatShapeControl(double leftPredictorOrdinate, double rightPredictorOrdinate, java.lang.String shapeControlType, double tension)RightHatShapeControl constructor -
Method Summary
Modifier and Type Method Description doublederivative(double predictorOrdinate, int order)Calculate the derivative as a doubledoubleevaluate(double predictorOrdinate)Evaluate for the given variatedoubleintegrate(double begin, double end)Integrate over the given rangedoublenormalizer()Compute the NormalizerMethods inherited from class org.drip.spline.bspline.BasisHatShapeControl
shapeControlTypeMethods inherited from class org.drip.spline.bspline.TensionBasisHat
in, left, right, tensionMethods 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
-
RightHatShapeControl
public RightHatShapeControl(double leftPredictorOrdinate, double rightPredictorOrdinate, java.lang.String shapeControlType, double tension) throws java.lang.ExceptionRightHatShapeControl constructor- Parameters:
leftPredictorOrdinate- The Left Predictor OrdinaterightPredictorOrdinate- The Right Predictor OrdinateshapeControlType- Type of the Shape Controller to be used - NONE, LINEAR/QUADRATIC Rationaltension- Tension of the Tension Hat Function- Throws:
java.lang.Exception- Thrown if the input is invalid
-
-
Method Details
-
evaluate
public double evaluate(double predictorOrdinate) throws java.lang.ExceptionDescription copied from class:R1ToR1Evaluate for the given variate -
derivative
public double derivative(double predictorOrdinate, int order) throws java.lang.ExceptionDescription copied from class:R1ToR1Calculate the derivative as a double- Overrides:
derivativein classR1ToR1- Parameters:
predictorOrdinate- 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:R1ToR1Integrate over the given range -
normalizer
public double normalizer() throws java.lang.ExceptionDescription copied from class:TensionBasisHatCompute the Normalizer- Specified by:
normalizerin classTensionBasisHat- Returns:
- The Normalizer
- Throws:
java.lang.Exception- Thrown if the Normalizer cannot be computed
-