Package org.drip.spline.segment
Class Monotonocity
java.lang.Object
org.drip.spline.segment.Monotonocity
public class Monotonocity
extends java.lang.Object
Monotonocity contains the monotonicity details related to the given segment. Indicates whether the
segment is monotonic, and if not, whether it contains a maximum, a minimum, or an inflection.
- MONOTONIC
- NON-MONOTONIC
- NON MONOTONE - MINIMA
- NON MONOTONE - MAXIMA
- NON MONOTONE - INFLECTION
- Monotonocity constructor
- Retrieve the Monotone Type
Module | Product Core Module |
Library | Fixed Income Analytics |
Project | Basis Splines and Linear Compounders across a Broad Family of Spline Basis Functions |
Package | Flexure Penalizing Best Fit Segment |
- Author:
- Lakshmi Krishnamurthy
-
Field Summary
Fields Modifier and Type Field Description static int
INFLECTION
NON MONOTONE - INFLECTIONstatic int
MAXIMA
NON MONOTONE - MAXIMAstatic int
MINIMA
NON MONOTONE - MINIMAstatic int
MONOTONIC
MONOTONICstatic int
NON_MONOTONIC
NON-MONOTONIC -
Constructor Summary
Constructors Constructor Description Monotonocity(int monotoneType)
Monotonocity constructor -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
MONOTONIC
public static final int MONOTONICMONOTONIC- See Also:
- Constant Field Values
-
NON_MONOTONIC
public static final int NON_MONOTONICNON-MONOTONIC- See Also:
- Constant Field Values
-
MINIMA
public static final int MINIMANON MONOTONE - MINIMA- See Also:
- Constant Field Values
-
MAXIMA
public static final int MAXIMANON MONOTONE - MAXIMA- See Also:
- Constant Field Values
-
INFLECTION
public static final int INFLECTIONNON MONOTONE - INFLECTION- See Also:
- Constant Field Values
-
-
Constructor Details
-
Monotonocity
public Monotonocity(int monotoneType) throws java.lang.ExceptionMonotonocity constructor- Parameters:
monotoneType
- One of the valid monotone types- Throws:
java.lang.Exception
- Thrown if the input monotone type is invalid
-
-
Method Details
-
type
public int type()Retrieve the Monotone Type- Returns:
- The Monotone Type
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-