Package eu.isas.reporter.calculation
Class CorrectionMatrix
java.lang.Object
eu.isas.reporter.calculation.CorrectionMatrix
A correction matrix contains the deisotoping coefficients as well as the
labels to be corrected.
- Author:
- Marc Vaudel, Harald Barsnes
-
Constructor Summary
ConstructorsConstructorDescriptionCorrectionMatrix(double[][] correctionMatrix, HashMap<Integer, String> reagentNames, double refMass) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the dimension of the correction matrix.doublegetReagentMass(int isotope) Returns the mass affected by the given column of the matrix.Returns the names of the reagents involved in the deisotoping by this matrix indexed by their isotopic number.doublegetValueAt(int i, int j) Returns the value of the matrix at row i and column j.
-
Constructor Details
-
CorrectionMatrix
public CorrectionMatrix(double[][] correctionMatrix, HashMap<Integer, String> reagentNames, double refMass) Constructor.- Parameters:
correctionMatrix- the correction matrixreagentNames- he name of the reagents affected by this matrixrefMass- the mass affected by the first column of the matrix
-
-
Method Details
-
getReagentMass
public double getReagentMass(int isotope) Returns the mass affected by the given column of the matrix.- Parameters:
isotope- the column of the matrix- Returns:
- the mass affected by the given column of the matrix
-
getReagentsNames
Returns the names of the reagents involved in the deisotoping by this matrix indexed by their isotopic number.- Returns:
- the names of the reagents involved in the deisotoping by this matrix
-
getDimension
public int getDimension()Returns the dimension of the correction matrix.- Returns:
- the dimension of the correction matrix
-
getValueAt
public double getValueAt(int i, int j) Returns the value of the matrix at row i and column j.- Parameters:
i- the row numberj- the column number- Returns:
- the value of the matrix at row i and column j
-