Package org.drip.numerical.common
Class R1ClosenessVerifier
java.lang.Object
org.drip.numerical.common.R1ClosenessVerifier
public class R1ClosenessVerifier
extends java.lang.Object
R1ClosenessVerifier tells if a Pair of Valid R1's match to within the Absolute/Relative
Tolerance. The References are:
- Golub, G. H., and C. F. van Loan (1996): Matrix Computations 3rd Edition Johns Hopkins University Press Baltimore MD
- Horn, R. A., and C. R. Johnson (2013): Matrix Analysis 2nd Edition Cambridge University Press Cambridge UK
- Li, C. K., and F. Zhang (2019): Eigenvalue Continuity and Gershgorin’s Theorem Electronic Journal of Linear Algebra 35 619-625
- Trefethen, L. N., and D. Bau III (1997): Numerical Linear Algebra Society for Industrial and Applied Mathematics Philadelphia PA
- Wikipedia (2024): Gershgorin Circle Theorem https://en.wikipedia.org/wiki/Gershgorin_circle_theorem
- Module = Computational Core Module
- Library = Numerical Analysis Library
- Project = Numerical Quadrature, Differentiation, Eigenization, Linear Algebra, and Utilities
- Package = Linear Algebra Matrix Transform Library
- Author:
- Lakshmi Krishnamurthy
-
Field Summary
Fields Modifier and Type Field Description static double
ABSOLUTE_TOLERANCE_DEFAULT
Default Absolute Tolerancestatic double
RELATIVE_TOLERANCE_DEFAULT
Default Relative Tolerance -
Constructor Summary
Constructors Constructor Description R1ClosenessVerifier(double relativeTolerance, double absoluteTolerance)
R1ClosenessVerifier Constructor -
Method Summary
Modifier and Type Method Description double
absoluteTolerance()
Retrieve the Absolute Toleranceboolean
match(double r1a, double r1b)
Indicate if the Pair of Valid R1's match to within the Absolute/Relative Tolerancedouble
relativeTolerance()
Retrieve the Relative Tolerancestatic R1ClosenessVerifier
Standard()
Construct the Default R1ClosenessVerifierMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
ABSOLUTE_TOLERANCE_DEFAULT
public static final double ABSOLUTE_TOLERANCE_DEFAULTDefault Absolute Tolerance- See Also:
- Constant Field Values
-
RELATIVE_TOLERANCE_DEFAULT
public static final double RELATIVE_TOLERANCE_DEFAULTDefault Relative Tolerance- See Also:
- Constant Field Values
-
-
Constructor Details
-
R1ClosenessVerifier
public R1ClosenessVerifier(double relativeTolerance, double absoluteTolerance) throws java.lang.ExceptionR1ClosenessVerifier Constructor- Parameters:
relativeTolerance
- Relative ToleranceabsoluteTolerance
- Absolute Tolerance- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-
-
Method Details
-
Standard
Construct the Default R1ClosenessVerifier- Returns:
- Default R1ClosenessVerifier
-
absoluteTolerance
public double absoluteTolerance()Retrieve the Absolute Tolerance- Returns:
- Absolute Tolerance
-
relativeTolerance
public double relativeTolerance()Retrieve the Relative Tolerance- Returns:
- Relative Tolerance
-
match
public boolean match(double r1a, double r1b) throws java.lang.ExceptionIndicate if the Pair of Valid R1's match to within the Absolute/Relative Tolerance- Parameters:
r1a
- First R1r1b
- Second R1- Returns:
- TRUE - The Pair of Valid R1's match to within the Absolute/Relative Tolerance
- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-