Package org.drip.spline.bspline
Class SegmentMonicBasisFunction
java.lang.Object
org.drip.function.definition.R1ToR1
org.drip.spline.bspline.SegmentBasisFunction
org.drip.spline.bspline.SegmentMonicBasisFunction
public class SegmentMonicBasisFunction extends SegmentBasisFunction
SegmentMonicBasisFunction implements the local monic B Spline that envelopes the predictor
ordinates, and the corresponding set of ordinates/basis functions. SegmentMonicBasisFunction uses the
left/right TensionBasisHat instances to achieve its implementation goals.
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description SegmentMonicBasisFunction(TensionBasisHat leftTensionBasisHat, TensionBasisHat rightTensionBasisHat)SegmentMonicBasisFunction 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 rangedoublenormalizedCumulative(double predictorOrdinate)Evaluate the Cumulative Normalized Integrand up to the given ordinatedoublenormalizer()Compute the complete Envelope Integrand - this will serve as the Envelope Normalizer.Methods inherited from class org.drip.spline.bspline.SegmentBasisFunction
bSplineOrder, following, leading, trailingMethods 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
-
SegmentMonicBasisFunction
public SegmentMonicBasisFunction(TensionBasisHat leftTensionBasisHat, TensionBasisHat rightTensionBasisHat) throws java.lang.ExceptionSegmentMonicBasisFunction constructor- Parameters:
leftTensionBasisHat- Left Tension Basis Hat FunctionrightTensionBasisHat- Right Tension Basis Hat Function- Throws:
java.lang.Exception- Thrown if Inputs are 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:SegmentBasisFunctionCompute the complete Envelope Integrand - this will serve as the Envelope Normalizer.- Specified by:
normalizerin classSegmentBasisFunction- Returns:
- The Complete Envelope Integrand.
- Throws:
java.lang.Exception- Thrown if the Complete Envelope Integrand cannot be calculated.
-
normalizedCumulative
public double normalizedCumulative(double predictorOrdinate) throws java.lang.ExceptionDescription copied from class:SegmentBasisFunctionEvaluate the Cumulative Normalized Integrand up to the given ordinate- Specified by:
normalizedCumulativein classSegmentBasisFunction- Parameters:
predictorOrdinate- The Predictor Ordinate- Returns:
- The Cumulative Normalized Integrand up to the given ordinate
- Throws:
java.lang.Exception- Thrown if input is invalid
-