/** * returns true if the index (in the array produced by toArray(boolean)) * contains a mean. * * @param index the column index * @return true if mean column */ protected boolean isMean(int index) { index--; // dataset if (index == 0) { return true; // base column } else { index--; // base column if (index < 0) { return false; } if (getShowStdDev()) { return (index % 3 == 1); } else { return (index % 2 == 0); } } }
/** * returns true if the index (in the array produced by toArray(boolean)) * contains a std deviation. * * @param index the column index * @return true if std dev column */ protected boolean isStdDev(int index) { index--; // dataset index--; // base column if (getShowStdDev()) { if (index == 0) { return true; // stddev of base column } else { index--; // stddev of base column if (index < 0) { return false; } return (index % 3 == 1); } } else { return false; } }
/** * returns true if the index (in the array produced by toArray(boolean)) * contains a significance column. * * @param index the column index * @return true if significance column */ protected boolean isSignificance(int index) { index--; // dataset index--; // base column if (getShowStdDev()) { index--; // stddev of base column if (index < 0) { return false; } return (index % 3 == 2); } else { if (index < 0) { return false; } return (index % 2 == 1); } }
/** * returns true if the index (in the array produced by toArray(boolean)) * contains a mean. * * @param index the column index * @return true if mean column */ protected boolean isMean(int index) { index--; // dataset if (index == 0) { return true; // base column } else { index--; // base column if (index < 0) { return false; } if (getShowStdDev()) { return (index % 3 == 1); } else { return (index % 2 == 0); } } }
/** * returns true if the index (in the array produced by toArray(boolean)) * contains a significance column. * * @param index the column index * @return true if significance column */ protected boolean isSignificance(int index) { index--; // dataset index--; // base column if (getShowStdDev()) { index--; // stddev of base column if (index < 0) { return false; } return (index % 3 == 2); } else { if (index < 0) { return false; } return (index % 2 == 1); } }
/** * returns true if the index (in the array produced by toArray(boolean)) * contains a std deviation. * * @param index the column index * @return true if std dev column */ protected boolean isStdDev(int index) { index--; // dataset index--; // base column if (getShowStdDev()) { if (index == 0) { return true; // stddev of base column } else { index--; // stddev of base column if (index < 0) { return false; } return (index % 3 == 1); } } else { return false; } }
result.add("" + getCountWidth()); if (getShowStdDev()) { result.add("-show-stddev");
result.add("" + getCountWidth()); if (getShowStdDev()) { result.add("-show-stddev");
/** * displays the Dialog for the output format and sets the chosen settings, if * the user approves. */ public void setOutputFormatFromDialog() { OutputFormatDialog dialog = new OutputFormatDialog(PropertyDialog.getParentFrame(this)); m_ResultMatrix.setShowStdDev(m_ShowStdDevs.isSelected()); dialog.setResultMatrix(m_ResultMatrix); dialog.setLocationRelativeTo(this); if (dialog.showDialog() == OutputFormatDialog.APPROVE_OPTION) { m_ResultMatrix = dialog.getResultMatrix(); m_ShowStdDevs.setSelected(m_ResultMatrix.getShowStdDev()); } }
/** * displays the Dialog for the output format and sets the chosen settings, if * the user approves. */ public void setOutputFormatFromDialog() { OutputFormatDialog dialog = new OutputFormatDialog(PropertyDialog.getParentFrame(this)); m_ResultMatrix.setShowStdDev(m_ShowStdDevs.isSelected()); dialog.setResultMatrix(m_ResultMatrix); dialog.setLocationRelativeTo(this); if (dialog.showDialog() == OutputFormatDialog.APPROVE_OPTION) { m_ResultMatrix = dialog.getResultMatrix(); m_ShowStdDevs.setSelected(m_ResultMatrix.getShowStdDev()); } }
if (getShowStdDev()) { cols = cols * 3; // mean + stddev + sign. } else { x++; if (getShowStdDev()) { result[0][x] = ""; x++; if (getShowStdDev()) { if (!valueExists) { result[y][x] = ""; if (getShowStdDev()) { result[y][x] = ""; x++; if (getShowStdDev()) { result[y][x] = ""; x++; for (i = 0; i < result[0].length; i++) { if (((i == 3) && (getShowStdDev())) || ((i == 2) && (!getShowStdDev()))) { continue;
if (getShowStdDev()) { cols = cols * 3; // mean + stddev + sign. } else { x++; if (getShowStdDev()) { result[0][x] = ""; x++; if (getShowStdDev()) { if (!valueExists) { result[y][x] = ""; if (getShowStdDev()) { result[y][x] = ""; x++; if (getShowStdDev()) { result[y][x] = ""; x++; for (i = 0; i < result[0].length; i++) { if (((i == 3) && (getShowStdDev())) || ((i == 2) && (!getShowStdDev()))) { continue;