cloudy  trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
monointerp.h
Go to the documentation of this file.
1 /* This file is part of Cloudy and is copyright (C)1978-2017 by Gary J. Ferland and
2  * others. For conditions of distribution and use see copyright notice in license.txt */
3 
4 #ifndef MONOINTERP_H_
5 #define MONOINTERP_H_
6 
7 // Usage:
8 // Monointerp m(xvals,yvals, npt); -- Constructor
9 // y_interp = m(x_interp); -- Interpolate value
10 
11 class Monointerp {
12  const std::vector<double> m_x, m_y;
13  std::vector<double> m_g;
14 
15 public:
16  // CONSTRUCTORS
17  Monointerp ( const double x[], const double y[], long n);
18  ~Monointerp(void);
19 private:
20  Monointerp ( const Monointerp& ); // Not implemented
21  Monointerp& operator= ( const Monointerp& ); // Not implemented
22 
23  // MANIPULATORS -- None
24 
25  // ACCESSORS
26 public:
27  double operator() ( double xval) const;
28 
29 };
30 #endif
Monointerp(const double x[], const double y[], long n)
Definition: monointerp.cpp:43
std::vector< double > m_g
Definition: monointerp.h:13
Monointerp & operator=(const Monointerp &)
double operator()(double xval) const
Definition: monointerp.cpp:75
const std::vector< double > m_x
Definition: monointerp.h:12
~Monointerp(void)
Definition: monointerp.cpp:70
const std::vector< double > m_y
Definition: monointerp.h:12