FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
environmentmodels::parametric::Profile1D Struct Reference

#include <ParametricBathymetry.h>

Public Member Functions

double Evaluate (double v) const
 

Public Attributes

InterpMode mode = InterpMode::CubicSpline
 Interpolation method.
 
Extrap extrap = Extrap::Flat
 Out-of-range behaviour.
 
std::vector< double > nodes
 Node coordinates v_i (ascending).
 
std::vector< double > values
 Node values z_i.
 
std::vector< double > poly
 Canonical polynomial coefficients (Polynomial).
 
std::vector< double > b
 Spline/linear 1st-order coefficients per node.
 
std::vector< double > c
 Spline 2nd-order coefficients per node.
 
std::vector< double > d
 Spline 3rd-order coefficients per node.
 

Detailed Description

Precomputed 1-D interpolated profile \(z(v)\) over cross-track coordinate v.

Built once from a list of (v, value) nodes (strictly increasing in v) and evaluated cheaply per query. Used by the TransversalInterp primitive.

Member Function Documentation

◆ Evaluate()

double environmentmodels::parametric::Profile1D::Evaluate ( double  v) const

Evaluate the profile at a cross-track coordinate.

Parameters
[in]vCross-track coordinate [m].
Returns
Interpolated value [m].

The documentation for this struct was generated from the following file: