mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 01:12:11 -05:00
#2659 Ensemble statistics. First version
This commit is contained in:
1 parent
b73c8e0565
commit
69accdc4c6
10 files changed
+632
-7
No files matched your search
@@ -25,6 +25,7 @@
|
||||
|
||||
#include "cvfAssert.h"
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -474,6 +475,17 @@ RifEclipseSummaryAddress RifEclipseSummaryAddress::importedAddress(const std::st
|
||||
return addr;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RifEclipseSummaryAddress RifEclipseSummaryAddress::ensembleStatisticsAddress(const std::string& quantityName)
|
||||
{
|
||||
RifEclipseSummaryAddress addr;
|
||||
addr.m_variableCategory = SUMMARY_ENSEMBLE_STATISTICS;
|
||||
addr.m_quantityName = quantityName;
|
||||
return addr;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -775,6 +787,14 @@ bool operator==(const RifEclipseSummaryAddress& first, const RifEclipseSummaryAd
|
||||
return true;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool operator!=(const RifEclipseSummaryAddress& first, const RifEclipseSummaryAddress& second)
|
||||
{
|
||||
return !operator==(first, second);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -23,6 +23,12 @@
|
||||
|
||||
class QTextStream;
|
||||
|
||||
|
||||
#define ENSEMBLE_STAT_P10_QUANTITY_NAME "P10"
|
||||
#define ENSEMBLE_STAT_P50_QUANTITY_NAME "P50"
|
||||
#define ENSEMBLE_STAT_P90_QUANTITY_NAME "P90"
|
||||
#define ENSEMBLE_STAT_MEAN_QUANTITY_NAME "MEAN"
|
||||
|
||||
//==================================================================================================
|
||||
//
|
||||
//
|
||||
@@ -50,7 +56,8 @@ public:
|
||||
SUMMARY_BLOCK,
|
||||
SUMMARY_BLOCK_LGR,
|
||||
SUMMARY_CALCULATED,
|
||||
SUMMARY_IMPORTED
|
||||
SUMMARY_IMPORTED,
|
||||
SUMMARY_ENSEMBLE_STATISTICS
|
||||
};
|
||||
|
||||
enum SummaryIdentifierType
|
||||
@@ -134,6 +141,7 @@ public:
|
||||
static RifEclipseSummaryAddress blockLgrAddress(const std::string& quantityName, const std::string& lgrName, int i, int j, int k);
|
||||
static RifEclipseSummaryAddress calculatedAddress(const std::string& quantityName);
|
||||
static RifEclipseSummaryAddress importedAddress(const std::string& quantityName);
|
||||
static RifEclipseSummaryAddress ensembleStatisticsAddress(const std::string& quantityName);
|
||||
|
||||
// Access methods
|
||||
|
||||
@@ -191,6 +199,7 @@ private:
|
||||
};
|
||||
|
||||
bool operator==(const RifEclipseSummaryAddress& first, const RifEclipseSummaryAddress& second);
|
||||
bool operator!=(const RifEclipseSummaryAddress& first, const RifEclipseSummaryAddress& second);
|
||||
|
||||
bool operator<(const RifEclipseSummaryAddress& first, const RifEclipseSummaryAddress& second);
|
||||
|
||||
|
||||
Reference in new issue
Block a user