Moved the statistical calculation algorithm code into a separate file.

Added unit test to these calculations, and fixed a calculation error.
p4#: 21140
This commit is contained in:
Jacob Støren
2013-04-05 10:49:39 +02:00
parent db62f01e0a
commit 0fed66deb2
11 changed files with 404 additions and 187 deletions

View File

@@ -32,9 +32,9 @@ namespace caf {
template<>
void caf::AppEnum<RimStatisticsCase::PercentileCalcType>::setUp()
{
addItem(RimStatisticsCase::EXACT, "ExactPercentile", "Exact");
addItem(RimStatisticsCase::HISTOGRAM_ESTIMATED, "HistogramEstimatedPercentile", "Estimated (Faster for large case counts)");
setDefault(RimStatisticsCase::EXACT);
addItem(RimStatisticsCase::NEAREST_OBSERVATION, "NearestObservationPercentile", "Nearest Observation");
addItem(RimStatisticsCase::HISTOGRAM_ESTIMATED, "HistogramEstimatedPercentile", "Histogram based estimate");
setDefault(RimStatisticsCase::NEAREST_OBSERVATION);
}
}