| 25 | */ |
| 26 | |
| 27 | StatisticsSpreadsheet::StatisticsSpreadsheet(Spreadsheet* spreadsheet, bool loading, AspectType type) |
| 28 | : Spreadsheet(i18n("Column Statistics"), loading, type) |
| 29 | , m_spreadsheet(spreadsheet) { |
| 30 | m_metricValues = { |
| 31 | StatisticsSpreadsheet::Metric::Count, |
| 32 | StatisticsSpreadsheet::Metric::Minimum, |
| 33 | StatisticsSpreadsheet::Metric::Maximum, |
| 34 | StatisticsSpreadsheet::Metric::ArithmeticMean, |
| 35 | StatisticsSpreadsheet::Metric::GeometricMean, |
| 36 | StatisticsSpreadsheet::Metric::HarmonicMean, |
| 37 | StatisticsSpreadsheet::Metric::ContraharmonicMean, |
| 38 | StatisticsSpreadsheet::Metric::Mode, |
| 39 | StatisticsSpreadsheet::Metric::FirstQuartile, |
| 40 | StatisticsSpreadsheet::Metric::Median, |
| 41 | StatisticsSpreadsheet::Metric::ThirdQuartile, |
| 42 | StatisticsSpreadsheet::Metric::IQR, |
| 43 | StatisticsSpreadsheet::Metric::Percentile1, |
| 44 | StatisticsSpreadsheet::Metric::Percentile5, |
| 45 | StatisticsSpreadsheet::Metric::Percentile10, |
| 46 | StatisticsSpreadsheet::Metric::Percentile90, |
| 47 | StatisticsSpreadsheet::Metric::Percentile95, |
| 48 | StatisticsSpreadsheet::Metric::Percentile99, |
| 49 | StatisticsSpreadsheet::Metric::Trimean, |
| 50 | StatisticsSpreadsheet::Metric::Range, |
| 51 | StatisticsSpreadsheet::Metric::Variance, |
| 52 | StatisticsSpreadsheet::Metric::StandardDeviation, |
| 53 | StatisticsSpreadsheet::Metric::MeanDeviation, |
| 54 | StatisticsSpreadsheet::Metric::MeanDeviationAroundMedian, |
| 55 | StatisticsSpreadsheet::Metric::MedianDeviation, |
| 56 | StatisticsSpreadsheet::Metric::Skewness, |
| 57 | StatisticsSpreadsheet::Metric::Kurtosis, |
| 58 | StatisticsSpreadsheet::Metric::Entropy, |
| 59 | }; |
| 60 | m_metricNames = { |
| 61 | i18n("Count"), |
| 62 | i18n("Minimum"), |
| 63 | i18n("Maximum"), |
| 64 | i18n("ArithmeticMean"), |
| 65 | i18n("GeometricMean"), |
| 66 | i18n("HarmonicMean"), |
| 67 | i18n("ContraharmonicMean"), |
| 68 | i18n("Mode"), |
| 69 | i18n("FirstQuartile"), |
| 70 | i18n("Median"), |
| 71 | i18n("ThirdQuartile"), |
| 72 | i18n("Interquartile Range"), |
| 73 | i18n("Percentile1"), |
| 74 | i18n("Percentile5"), |
| 75 | i18n("Percentile10"), |
| 76 | i18n("Percentile90"), |
| 77 | i18n("Percentile95"), |
| 78 | i18n("Percentile99"), |
| 79 | i18n("Trimean"), |
| 80 | i18n("Range"), |
| 81 | i18n("Variance"), |
| 82 | i18n("StandardDeviation"), |
| 83 | i18n("MeanDeviation"), |
| 84 | i18n("MeanDeviationAroundMedian"), |