/** * initializes the matrix with the given dimensions. * * @param cols the number of columns * @param rows the number of rows */ public ResultMatrix(int cols, int rows) { setSize(cols, rows); clear(); }
/** * initializes the matrix with the given dimensions. * * @param cols the number of columns * @param rows the number of rows */ public ResultMatrix(int cols, int rows) { setSize(cols, rows); clear(); }
int n; setSize(matrix.getColCount(), matrix.getRowCount());
int n; setSize(matrix.getColCount(), matrix.getRowCount());
/** * clears the content and fills the column and row names according to the * given sorting */ protected void initResultMatrix() { m_ResultMatrix.setSize(getNumResultsets(), getNumDatasets()); m_ResultMatrix.setShowStdDev(m_ShowStdDevs); for (int i = 0; i < getNumDatasets(); i++) { m_ResultMatrix.setRowName(i, templateString(m_DatasetSpecifiers.specifier(i))); } for (int j = 0; j < getNumResultsets(); j++) { m_ResultMatrix.setColName(j, getResultsetName(j)); m_ResultMatrix.setColHidden(j, !displayResultset(j)); } }
/** * clears the content and fills the column and row names according to the * given sorting */ protected void initResultMatrix() { m_ResultMatrix.setSize(getNumResultsets(), getNumDatasets()); m_ResultMatrix.setShowStdDev(m_ShowStdDevs); for (int i = 0; i < getNumDatasets(); i++) { m_ResultMatrix.setRowName(i, templateString(m_DatasetSpecifiers.specifier(i))); } for (int j = 0; j < getNumResultsets(); j++) { m_ResultMatrix.setColName(j, getResultsetName(j)); m_ResultMatrix.setColHidden(j, !displayResultset(j)); } }
/** * removes the stored data and the ordering, but retains the dimensions of the * matrix. */ public void clear() { m_MeanPrec = getDefaultMeanPrec(); m_StdDevPrec = getDefaultStdDevPrec(); m_ShowStdDev = getDefaultShowStdDev(); m_ShowAverage = getDefaultShowAverage(); m_RemoveFilterName = getDefaultRemoveFilterName(); m_PrintColNames = getDefaultPrintColNames(); m_PrintRowNames = getDefaultPrintRowNames(); m_EnumerateColNames = getDefaultEnumerateColNames(); m_EnumerateRowNames = getDefaultEnumerateRowNames(); m_RowNameWidth = getDefaultRowNameWidth(); m_ColNameWidth = getDefaultColNameWidth(); m_MeanWidth = getDefaultMeanWidth(); m_StdDevWidth = getDefaultStdDevWidth(); m_SignificanceWidth = getDefaultSignificanceWidth(); m_CountWidth = getDefaultCountWidth(); setSize(getColCount(), getRowCount()); }
/** * removes the stored data and the ordering, but retains the dimensions of the * matrix. */ public void clear() { m_MeanPrec = getDefaultMeanPrec(); m_StdDevPrec = getDefaultStdDevPrec(); m_ShowStdDev = getDefaultShowStdDev(); m_ShowAverage = getDefaultShowAverage(); m_RemoveFilterName = getDefaultRemoveFilterName(); m_PrintColNames = getDefaultPrintColNames(); m_PrintRowNames = getDefaultPrintRowNames(); m_EnumerateColNames = getDefaultEnumerateColNames(); m_EnumerateRowNames = getDefaultEnumerateRowNames(); m_RowNameWidth = getDefaultRowNameWidth(); m_ColNameWidth = getDefaultColNameWidth(); m_MeanWidth = getDefaultMeanWidth(); m_StdDevWidth = getDefaultStdDevWidth(); m_SignificanceWidth = getDefaultSignificanceWidth(); m_CountWidth = getDefaultCountWidth(); setSize(getColCount(), getRowCount()); }