HydroFemPhysics
The GeMA Hydraulic FEM Physics Plugin
Loading...
Searching...
No Matches
gmpPiecewiseCurve.h File Reference

Declaration of the GmpPiecewiseCurve class. More...

#include <gmTrace.h>
#include <gmLog.h>
#include <assert.h>
#include <cmath>
#include <limits>
#include <gmMathUtils.h>
Include dependency graph for gmpPiecewiseCurve.h:

Go to the source code of this file.

Macros

#define EPSILON   2.2204460492503131e-016
 

Functions

int GmpPiecewiseCurve::findInterval (double value, GmCRMatrix &curve, int col)
 
double GmpPiecewiseCurve::interpolate (double x, GmCRMatrix &curve, const GmLogCategory &logger)
 Returns the corresponding y value for a given x value.
 
double GmpPiecewiseCurve::derivativeGivenY (double y, GmCRMatrix &curve, const GmLogCategory &logger)
 Returns the derivative of the curve at a given y value.
 

Detailed Description

Declaration of the GmpPiecewiseCurve class.

Author
: Danilo Cavalcanti
Date
February, 2025

Function Documentation

◆ findInterval()

int GmpPiecewiseCurve::findInterval ( double value,
GmCRMatrix & curve,
int col )

Find the interval where the given value is located Considers a monotonic curve