OGS
PiecewiseLinearMonotonicCurve.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
7
8namespace MathLib
9{
12{
13public:
18 PiecewiseLinearMonotonicCurve(std::vector<double> x,
19 std::vector<double> y);
20
22
25 double getInverseVariable(const double y) const;
26
27private:
36 bool isStrongMonotonic() const;
37};
38} // namespace MathLib
PiecewiseLinearInterpolation(std::vector< double > supporting_points, std::vector< double > values_at_supp_pnts, bool supp_pnts_sorted=false)
PiecewiseLinearMonotonicCurve(std::vector< double > x, std::vector< double > y)