Class RedundancyMatrix


public class RedundancyMatrix extends VandermondeMatrix
Creates a redundancy matrixContent or a recovery matrixContent for the redundancy operations.
  • Constructor Details

    • RedundancyMatrix

      public RedundancyMatrix(RedundancyMatrix r)
    • RedundancyMatrix

      public RedundancyMatrix(int dataRows, int total, MathMode mode)

      Creates a redundancy matrixContent based on vnadermonde matrices.

      Parameters:
      dataRows - the number of data rows
      total - 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 rows
      total - the number of total rows (redundancy + data rows)
      mode - the math mode to be used
      noCache - if set the result is not cached
      noNormalize - if set the matrix is not normalized upon creation
  • Method Details

    • getRecoveryMatrix

      public Matrix getRecoveryMatrix(int[] missingRowIndex)

      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