class Gambit::Utils::interp1d_gsl_collection

[No description available] More…

#include <interp_collection.hpp>

Public Functions

Name
interp1d_gsl_collection(const std::string collection_name_in, const std::string file_name_in, const std::vector< std::string > colnames_in)
~interp1d_gsl_collection()
doubleeval(double x, size_t interp_index) const
doubleeval(double x) const
boolis_inside_range(double x) const

Public Attributes

Name
std::stringcollection_name
std::stringfile_name
std::stringx_name
std::vector< std::string >interpolator_names
std::vector< gsl_spline * >splines
std::vector< gsl_interp_accel * >x_accels
doublex_min
doublex_max
size_tn_interpolators

Detailed Description

class Gambit::Utils::interp1d_gsl_collection;

A class for holding a collection of 1D interpolators, created from reading a tabulated ascii file.

  • The first column is taken as the x value.
  • For each remaining column a 1D interpolation function f(x) is created

Public Functions Documentation

function interp1d_gsl_collection

interp1d_gsl_collection(
    const std::string collection_name_in,
    const std::string file_name_in,
    const std::vector< std::string > colnames_in
)

function ~interp1d_gsl_collection

~interp1d_gsl_collection()

function eval

double eval(
    double x,
    size_t interp_index
) const

function eval

double eval(
    double x
) const

function is_inside_range

bool is_inside_range(
    double x
) const

Public Attributes Documentation

variable collection_name

std::string collection_name;

variable file_name

std::string file_name;

variable x_name

std::string x_name;

variable interpolator_names

std::vector< std::string > interpolator_names;

variable splines

std::vector< gsl_spline * > splines;

variable x_accels

std::vector< gsl_interp_accel * > x_accels;

variable x_min

double x_min;

variable x_max

double x_max;

variable n_interpolators

size_t n_interpolators;

Updated on 2023-06-26 at 21:36:53 +0000