/** * Sets the gui elements for fields that are stored in the AttributeStats * structure. * * @param index the index of the attribute */ protected void setDerived(int index) { AttributeStats as = m_AttributeStats[index]; long percent = Math.round(100.0 * as.missingCount / as.totalCount); m_MissingLab.setText("" + as.missingCount + " (" + percent + "%)"); percent = Math.round(100.0 * as.uniqueCount / as.totalCount); m_UniqueLab.setText("" + as.uniqueCount + " (" + percent + "%)"); m_DistinctLab.setText("" + as.distinctCount); setTable(as, index); }
/** * Sets the gui elements for fields that are stored in the AttributeStats * structure. * * @param index the index of the attribute */ protected void setDerived(int index) { AttributeStats as = m_AttributeStats[index]; long percent = Math.round(100.0 * as.missingCount / as.totalCount); m_MissingLab.setText("" + as.missingCount + " (" + percent + "%)"); percent = Math.round(100.0 * as.uniqueCount / as.totalCount); m_UniqueLab.setText("" + as.uniqueCount + " (" + percent + "%)"); m_DistinctLab.setText("" + as.distinctCount); setTable(as, index); }