1 package jalview.datamodel;
3 public class FloatContactMatrix extends GroupSetHolder implements ContactMatrixI
6 int maxrow = 0, maxcol = 0;
14 public FloatContactMatrix(float[][] matrix)
17 for (float[] row : matrix)
19 if (row.length > maxcol)
32 maxrow = matrix.length;
36 public FloatContactMatrix(float[][] elements2, GroupSet grps2)
43 * getContactList(column) @returns the vector of predicted alignment errors
44 * for reference position given by column
47 public ContactListI getContactList(final int column)
49 if (column < 0 || column >= elements.length)
54 return new ContactListImpl(new ContactListProviderI()
57 public int getPosition()
63 public int getContactHeight()
69 public double getContactAt(int mcolumn)
71 if (mcolumn < 0 || mcolumn >= elements[column].length)
75 return elements[column][mcolumn];
81 * getElementAt(column, i) @returns the predicted superposition error for the
82 * ith position when column is used as reference
85 public double getElementAt(int _column, int i)
87 return elements[_column][i];
103 public String getAnnotDescr()
105 // TODO Auto-generated method stub
110 public String getAnnotLabel()
112 // TODO Auto-generated method stub
117 public String getType()
123 public int getWidth()
129 public int getHeight()