UQTk: Uncertainty Quantification Toolkit  3.1.1
pcmaps.h
Go to the documentation of this file.
1 /* =====================================================================================
2 
3  The UQ Toolkit (UQTk) version 3.1.1
4  Copyright (2021) NTESS
5  https://www.sandia.gov/UQToolkit/
6  https://github.com/sandialabs/UQTk
7 
8  Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
9  Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Government
10  retains certain rights in this software.
11 
12  This file is part of The UQ Toolkit (UQTk)
13 
14  UQTk is open source software: you can redistribute it and/or modify
15  it under the terms of BSD 3-Clause License
16 
17  UQTk is distributed in the hope that it will be useful,
18  but WITHOUT ANY WARRANTY; without even the implied warranty of
19  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  BSD 3 Clause License for more details.
21 
22  You should have received a copy of the BSD 3 Clause License
23  along with UQTk. If not, see https://choosealicense.com/licenses/bsd-3-clause/.
24 
25  Questions? Contact the UQTk Developers at <uqtk-developers@software.sandia.gov>
26  Sandia National Laboratories, Livermore, CA, USA
27 ===================================================================================== */
28 #ifndef PCMAPS_H
29 #define PCMAPS_H
30 
54 double PCtoPC(double x, const std::string pcIn, double in1, double in2, const std::string pcOut, double out1, double out2);
55 
57 void PCtoPC(Array2D<double>& xx, const std::string pcIn, double in1, double in2, Array2D<double>& yy, const std::string pcOut, double out1, double out2);
58 
60 double rtbis_mod(double func(double,const std::string,double,double,const std::string,double,double), const double x1, const double x2, const double xacc,double x, const std::string pcIn, double in1, double in2, const std::string pcOut, double out1, double out2);
61 
63 void linint( Array2D<double> &xydata, const double x, double &y, int col ) ;
64 
67 void linint( Array2D<double> &xydata, const double x, double &y ) ;
68 
69 
70 //---------------------------------------------------------------------------------------
71 #endif // PCMAPS_H
static double x1[]
Definition: gkpclib.cpp:36
void linint(Array2D< double > &xydata, const double x, double &y, int col)
Auxiliary linear interpolation function.
Definition: pcmaps.cpp:440
double PCtoPC(double x, const std::string pcIn, double in1, double in2, const std::string pcOut, double out1, double out2)
Implements a map y=f(x), where f is a function mapping one PC domain (pcIn with parameters in1,...
Definition: pcmaps.cpp:51
double rtbis_mod(double func(double, const std::string, double, double, const std::string, double, double), const double x1, const double x2, const double xacc, double x, const std::string pcIn, double in1, double in2, const std::string pcOut, double out1, double out2)
Bisection method for root-finding, modified to invert PCtoPC maps.
Definition: pcmaps.cpp:416