Package org.drip.spaces.big
Class SubMatrixSetExtractor
java.lang.Object
org.drip.spaces.big.SubMatrixSetExtractor
public class SubMatrixSetExtractor
extends java.lang.Object
SubMatrixSetExtractor contains the Functionality to extract the Set of the Sub-matrices contained
inside of the given Matrix. It provides the following Functionality:
- Compute the Aggregate Composite Value of the Supplied Matrix
- Generate the List of all the sub-matrices contained within a specified Square Matrix starting from the given Row and Column
- Compute the Maximum Composite Value of all the sub-matrices contained within a specified Square Matrix starting from the given Row and Column
- Use the "Lean" Method to compute the Maximum Composite Value of all the sub-matrices contained within a specified Square Matrix starting from the given Row and Column
Module | Computational Core Module |
Library | Statistical Learning Library |
Project | R1 and Rd Vector/Tensor Spaces (Validated and/or Normed), and Function Classes |
Package | Big-data In-place Manipulator |
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description SubMatrixSetExtractor()
-
Method Summary
Modifier and Type Method Description static double
CompositeValue(double[][] matrix)
Compute the Aggregate Composite Value of the Supplied Matrixstatic double
LeanMaxCompositeSubMatrix(double[][] masterMatrix, int startRow, int startColumn)
Use the "Lean" Method to compute the Maximum Composite Value of all the sub-matrices contained within a specified Square Matrix starting from the given Row and Columnstatic double
MaxCompositeSubMatrix(double[][] masterMatrix, int startRow, int startColumn)
Compute the Maximum Composite Value of all the sub-matrices contained within a specified Square Matrix starting from the given Row and Columnstatic java.util.List<double[][]>
SquareSubMatrixList(double[][] masterMatrix, int startRow, int startColumn)
Generate the List of all the sub-matrices contained within a specified Square Matrix starting from the given Row and ColumnMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SubMatrixSetExtractor
public SubMatrixSetExtractor()
-
-
Method Details
-
CompositeValue
public static final double CompositeValue(double[][] matrix) throws java.lang.ExceptionCompute the Aggregate Composite Value of the Supplied Matrix- Parameters:
matrix
- The Input Matrix- Returns:
- The Aggregate Composite Value
- Throws:
java.lang.Exception
- Thrown if the Aggregate Composite Value cannot be computed
-
SquareSubMatrixList
public static final java.util.List<double[][]> SquareSubMatrixList(double[][] masterMatrix, int startRow, int startColumn)Generate the List of all the sub-matrices contained within a specified Square Matrix starting from the given Row and Column- Parameters:
masterMatrix
- The Master Square MatrixstartRow
- The Starting RowstartColumn
- The Starting Column- Returns:
- The List of all the sub-matrices
-
MaxCompositeSubMatrix
public static final double MaxCompositeSubMatrix(double[][] masterMatrix, int startRow, int startColumn) throws java.lang.ExceptionCompute the Maximum Composite Value of all the sub-matrices contained within a specified Square Matrix starting from the given Row and Column- Parameters:
masterMatrix
- The Master Square MatrixstartRow
- The Starting RowstartColumn
- The Starting Column- Returns:
- Maximum of the Composite sub-matrices
- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-
LeanMaxCompositeSubMatrix
public static final double LeanMaxCompositeSubMatrix(double[][] masterMatrix, int startRow, int startColumn) throws java.lang.ExceptionUse the "Lean" Method to compute the Maximum Composite Value of all the sub-matrices contained within a specified Square Matrix starting from the given Row and Column- Parameters:
masterMatrix
- The Master Square MatrixstartRow
- The Starting RowstartColumn
- The Starting Column- Returns:
- Maximum of the Composite sub-matrices
- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-