Package org.drip.function.r1tor1
Class HyperbolicTension
java.lang.Object
org.drip.function.definition.R1ToR1
org.drip.function.r1tor1.HyperbolicTension
public class HyperbolicTension extends R1ToR1
HyperbolicTension provides the evaluation of the Hyperbolic Tension Function and its derivatives
for a specified variate.
- Module = Computational Core Module
- Library = Numerical Analysis Library
- Project = Rd To Rd Function Analysis
- Package = Built-in R1 To R1 Functions
- Author:
- Lakshmi Krishnamurthy
-
Field Summary
-
Constructor Summary
Constructors Constructor Description HyperbolicTension(int iType, double dblTension)
HyperbolicTension constructor -
Method Summary
Modifier and Type Method Description double
derivative(double dblVariate, int iOrder)
Calculate the derivative as a doubledouble
evaluate(double dblVariate)
Evaluate for the given variatedouble
getTension()
Retrieve the Tension Parameterint
getType()
Retrieve the hyperbolic function typedouble
integrate(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, poleResidue
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
SINH
public static final int SINHHyperbolic Tension Function Type - sinh- See Also:
- Constant Field Values
-
COSH
public static final int COSHHyperbolic Tension Function Type - cosh- See Also:
- Constant Field Values
-
-
Constructor Details
-
HyperbolicTension
public HyperbolicTension(int iType, double dblTension) throws java.lang.ExceptionHyperbolicTension constructor- Parameters:
iType
- Type of the HyperbolicTension Function - SINH/COSH/TANHdblTension
- Tension of the HyperbolicTension Function- Throws:
java.lang.Exception
- Thrown if the input is invalid
-
-
Method Details
-
evaluate
public double evaluate(double dblVariate) throws java.lang.ExceptionDescription copied from class:R1ToR1
Evaluate for the given variate -
derivative
public double derivative(double dblVariate, int iOrder) throws java.lang.ExceptionDescription copied from class:R1ToR1
Calculate the derivative as a double- Overrides:
derivative
in classR1ToR1
- Parameters:
dblVariate
- 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:R1ToR1
Integrate over the given range -
getType
public int getType()Retrieve the hyperbolic function type- Returns:
- Hyperbolic function type
-
getTension
public double getTension()Retrieve the Tension Parameter- Returns:
- Tension Parameter
-