Class RedundancyMatrix
java.lang.Object
net.messagevortex.router.operation.Matrix
net.messagevortex.router.operation.VandermondeMatrix
net.messagevortex.router.operation.RedundancyMatrix
Creates a redundancy matrixContent or a recovery matrixContent for the redundancy operations.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionRedundancyMatrix(int dataRows, int total, MathMode mode) Creates a redundancy matrixContent based on vnadermonde matrices.RedundancyMatrix(int dataRows, int total, MathMode mode, boolean noCache, boolean noNormalize) Creates a redundancy matrixContent based on vandermonde matrices. -
Method Summary
Modifier and TypeMethodDescriptiongetRecoveryMatrix(int[] missingRowIndex) Calculates a matrixContent to recover all data rows given the missing rows.Methods inherited from class net.messagevortex.router.operation.Matrix
divRow, enableMatrixCache, equals, flipRow, getAsByteArray, getField, getInverse, getRow, getRowAsByteArray, getX, getY, hashCode, mul, randomMatrix, removeRow, setField, setModulo, toString, transformColumn, transformRow, unitMatrix
-
Constructor Details
-
RedundancyMatrix
-
RedundancyMatrix
Creates a redundancy matrixContent based on vnadermonde matrices.
- Parameters:
dataRows- the number of data rowstotal- the number of total rows (redundancy + data rows)mode- the math mode to be used
-
RedundancyMatrix
public RedundancyMatrix(int dataRows, int total, MathMode mode, boolean noCache, boolean noNormalize) Creates a redundancy matrixContent based on vandermonde matrices.
- Parameters:
dataRows- the number of data rowstotal- the number of total rows (redundancy + data rows)mode- the math mode to be usednoCache- if set the result is not cachednoNormalize- if set the matrix is not normalized upon creation
-
-
Method Details
-
getRecoveryMatrix
Calculates a matrixContent to recover all data rows given the missing rows.
- Parameters:
missingRowIndex- Index of the rows missing data- Returns:
- a square matrixContent rebuilding the data vector
-