interpolation.h Source File
|
CPP API
|
interpolation.h
Go to the documentation of this file.
93 log_error("The vector provided in linear_interpolation_of_data_set() must have more than 1 node.");
stores vectors of values at time points (or some other abstract variable) the value at each time poin...
Definition: time_series.h:58
Eigen::Ref< const Vector > get_value(Eigen::Index i) const
reference to value vector at time point i
Definition: time_series.h:298
Eigen::Matrix< FP, Eigen::Dynamic, 1 > Vector
base type of expressions of vector values at a time point
Definition: time_series.h:63
Eigen::Index get_num_time_points() const
number of time points in the series
Definition: time_series.h:197
FP & get_time(Eigen::Index i)
time of time point at index i
Definition: time_series.h:272
Eigen::Ref< const Vector > get_last_value() const
reference to value vector at time point (num_timepoints - 1)
Definition: time_series.h:320
A collection of classes to simplify handling of matrix shapes in meta programming.
Definition: models/abm/analyze_result.h:30
Y linear_interpolation_of_data_set(std::vector< std::pair< X, Y >> vector, const X &x_eval)
Linear interpolation between two points of a dataset, which is represented by a vector of pairs of no...
Definition: interpolation.h:89
auto linear_interpolation(const X &x_eval, const X &x_1, const X &x_2, const V &y1, const V &y2)
Linear interpolation between two data values.
Definition: interpolation.h:44
void log_error(spdlog::string_view_t fmt, const Args &... args)
Definition: logging.h:100
Generated by