class Gambit::Utils::interp5d_collection

[No description available] More…

#include <interp_collection.hpp>

Public Functions

Name
interp5d_collection(const std::string collection_name_in, const std::string file_name_in, const std::vector< std::string > colnames_in, bool allow_missing_points, double missing_pts_val)
~interp5d_collection()
doublelinearinterp1D(double x1, double x2, double y1, double y2, double xtest)
doubleeval(double x1, double x2, double x3, double x4, double x5, size_t interp_index)
boolis_inside_range(double x1, double x2, double x3, double x4, double x5)

Public Attributes

Name
std::stringcollection_name
std::stringfile_name
std::stringx1_name
std::stringx2_name
std::stringx3_name
std::stringx4_name
std::stringx5_name
std::vector< std::string >interpolator_names
std::vector< double >x1_vec
std::vector< double >x2_vec
std::vector< double >x3_vec
std::vector< double >x4_vec
std::vector< double >x5_vec
std::vector< double >x1_vec_unsorted
std::vector< double >x2_vec_unsorted
std::vector< double >x3_vec_unsorted
std::vector< double >x4_vec_unsorted
std::vector< double >x5_vec_unsorted
std::vector< std::vector< double > >interp_data
doublex1_min
doublex1_max
doublex2_min
doublex2_max
doublex3_min
doublex3_max
doublex4_min
doublex4_max
doublex5_min
doublex5_max
size_tn_interpolators
boolallow_missing_pts
doublemissing_point_val

Detailed Description

class Gambit::Utils::interp5d_collection;

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

  • The first 5 columns are taken to be the x1,x2,x3,x4,x5 grid points.
  • A series of 1D linear interpolations are performed repeatedly to form the result.

Public Functions Documentation

function interp5d_collection

interp5d_collection(
    const std::string collection_name_in,
    const std::string file_name_in,
    const std::vector< std::string > colnames_in,
    bool allow_missing_points,
    double missing_pts_val
)

function ~interp5d_collection

~interp5d_collection()

function linearinterp1D

double linearinterp1D(
    double x1,
    double x2,
    double y1,
    double y2,
    double xtest
)

function eval

double eval(
    double x1,
    double x2,
    double x3,
    double x4,
    double x5,
    size_t interp_index
)

function is_inside_range

bool is_inside_range(
    double x1,
    double x2,
    double x3,
    double x4,
    double x5
)

Public Attributes Documentation

variable collection_name

std::string collection_name;

variable file_name

std::string file_name;

variable x1_name

std::string x1_name;

variable x2_name

std::string x2_name;

variable x3_name

std::string x3_name;

variable x4_name

std::string x4_name;

variable x5_name

std::string x5_name;

variable interpolator_names

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

variable x1_vec

std::vector< double > x1_vec;

variable x2_vec

std::vector< double > x2_vec;

variable x3_vec

std::vector< double > x3_vec;

variable x4_vec

std::vector< double > x4_vec;

variable x5_vec

std::vector< double > x5_vec;

variable x1_vec_unsorted

std::vector< double > x1_vec_unsorted;

variable x2_vec_unsorted

std::vector< double > x2_vec_unsorted;

variable x3_vec_unsorted

std::vector< double > x3_vec_unsorted;

variable x4_vec_unsorted

std::vector< double > x4_vec_unsorted;

variable x5_vec_unsorted

std::vector< double > x5_vec_unsorted;

variable interp_data

std::vector< std::vector< double > > interp_data;

variable x1_min

double x1_min;

variable x1_max

double x1_max;

variable x2_min

double x2_min;

variable x2_max

double x2_max;

variable x3_min

double x3_min;

variable x3_max

double x3_max;

variable x4_min

double x4_min;

variable x4_max

double x4_max;

variable x5_min

double x5_min;

variable x5_max

double x5_max;

variable n_interpolators

size_t n_interpolators;

variable allow_missing_pts

bool allow_missing_pts;

variable missing_point_val

double missing_point_val;

Updated on 2024-07-18 at 13:53:32 +0000