mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5905 Fix wrong percentile calculation
* We sent in percent values (0-100) instead of the fractional values (0 - 1) that RigHistogramCalculator::calculatePercentile required. * It has been like this for years AFAICT.
This commit is contained in:
committed by
Magne Sjaastad
parent
c238a0ac30
commit
ab9ba69391
@@ -298,9 +298,9 @@ void RimEclipseStatisticsCaseEvaluator::evaluateForResults( const QList<ResSpec>
|
||||
std::vector<size_t> histogram;
|
||||
RigHistogramCalculator histCalc( statParams[MIN], statParams[MAX], 100, &histogram );
|
||||
histCalc.addData( values );
|
||||
statParams[PMIN] = histCalc.calculatePercentil( m_statisticsConfig.m_pMinPos );
|
||||
statParams[PMID] = histCalc.calculatePercentil( m_statisticsConfig.m_pMidPos );
|
||||
statParams[PMAX] = histCalc.calculatePercentil( m_statisticsConfig.m_pMaxPos );
|
||||
statParams[PMIN] = histCalc.calculatePercentil( m_statisticsConfig.m_pMinPos / 100.0 );
|
||||
statParams[PMID] = histCalc.calculatePercentil( m_statisticsConfig.m_pMidPos / 100.0 );
|
||||
statParams[PMAX] = histCalc.calculatePercentil( m_statisticsConfig.m_pMaxPos / 100.0 );
|
||||
}
|
||||
else if ( m_statisticsConfig.m_pValMethod ==
|
||||
RimEclipseStatisticsCase::INTERPOLATED_OBSERVATION )
|
||||
|
||||
Reference in New Issue
Block a user