mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 14:40:26 -05:00
Consolidate linear interpolation algorithms
Replaces custom linear interpolation logic with `std::upper_bound` for improved efficiency. Refactors the permeability plot panel to utilize the improved interpolation tool.
This commit is contained in:
1 parent
bb89699fb5
commit
336e4b65fd
3 files changed
+29
-109
No files matched your search
@@ -19,6 +19,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "RiaDefines.h"
|
||||
|
||||
#include "RigFlowDiagSolverInterface.h"
|
||||
|
||||
#include <QPointer>
|
||||
@@ -66,17 +67,6 @@ private:
|
||||
RIGHT_YAXIS
|
||||
};
|
||||
|
||||
class ValueRange
|
||||
{
|
||||
public:
|
||||
ValueRange();
|
||||
void add( const ValueRange& range );
|
||||
|
||||
public:
|
||||
double min;
|
||||
double max;
|
||||
};
|
||||
|
||||
void plotUiSelectedCurves();
|
||||
static void setPlotDefaults( QwtPlot* plot );
|
||||
static void plotCurvesInQwt( RiaDefines::EclipseUnitSystem unitSystem,
|
||||
@@ -111,8 +101,6 @@ private:
|
||||
std::vector<QPointF>* points,
|
||||
std::vector<WhichYAxis>* axes );
|
||||
|
||||
static double interpolatedCurveYValue( const std::vector<double>& xVals, const std::vector<double>& yVals, double x );
|
||||
|
||||
static void
|
||||
addTransparentCurve( QwtPlot* plot, const std::vector<QPointF>& points, const std::vector<WhichYAxis>& axes, bool logScaleLeftAxis );
|
||||
|
||||
|
||||
Reference in new issue
Block a user