#7065 Include inf values in statistics curves (P90, P10, ..)

If inf values are skipped, the visualization of statistics curves will be positioned at wrong date.
This commit is contained in:
Magne Sjaastad 2021-02-16 13:22:55 +01:00
parent 1e0e429156
commit 6b16b2dcf1

View File

@ -190,10 +190,10 @@ void RimEnsembleStatisticsCase::calculate( const std::vector<RimSummaryCase*> su
double p10, p50, p90, mean;
RigStatisticsMath::calculateStatisticsCurves( valuesAtTimeStep, &p10, &p50, &p90, &mean );
if ( p10 != HUGE_VAL ) m_p10Data.push_back( p10 );
if ( p50 != HUGE_VAL ) m_p50Data.push_back( p50 );
if ( p90 != HUGE_VAL ) m_p90Data.push_back( p90 );
if ( mean != HUGE_VAL ) m_meanData.push_back( mean );
m_p10Data.push_back( p10 );
m_p50Data.push_back( p50 );
m_p90Data.push_back( p90 );
m_meanData.push_back( mean );
}
}