1 package jalview.datamodel;
3 public class FloatContactMatrix extends GroupSetHolder
4 implements ContactMatrixI
7 int maxrow = 0, maxcol = 0;
13 public FloatContactMatrix(float[][] matrix)
16 for (float[] row : matrix)
18 if (row.length > maxcol)
31 maxrow = matrix.length;
35 public FloatContactMatrix(float[][] elements2, GroupSet grps2)
42 * getContactList(column) @returns the vector of predicted alignment errors
43 * for reference position given by column
46 public ContactListI getContactList(final int column)
48 if (column < 0 || column >= elements.length)
53 return new ContactListImpl(new ContactListProviderI()
56 public int getPosition()
62 public int getContactHeight()
68 public double getContactAt(int mcolumn)
70 if (mcolumn < 0 || mcolumn >= elements[column].length)
74 return elements[column][mcolumn];
80 * getElementAt(column, i) @returns the predicted superposition error for the
81 * ith position when column is used as reference
84 public double getElementAt(int _column, int i)
86 return elements[_column][i];
102 public String getAnnotDescr()
104 // TODO Auto-generated method stub
109 public String getAnnotLabel()
111 // TODO Auto-generated method stub
116 public String getType()
122 public int getWidth()
128 public int getHeight()