![]() |
mutable
A Database System for Research and Fast Prototyping
|
#include <Index.hpp>
Public Member Functions | |
LinearModel (double slope, double intercept) | |
double | operator() (const key_type x) const |
Static Public Member Functions | |
static LinearModel | train_linear_spline (const_iterator first, const_iterator last, const std::size_t offset=0, const double compression_factor=1.0) |
Builds a linear spline model between the first and last data point. | |
static LinearModel | train_linear_regression (const_iterator first, const_iterator last, const std::size_t offset=0, const double compression_factor=1.0) |
Builds a linear regression model from all data points between the first and last . | |
Data Fields | |
double | slope |
double | intercept |
|
inline |
|
inline |
Definition at line 152 of file Index.hpp.
References m::idx::RecursiveModelIndex< Key >::LinearModel::intercept, and m::idx::RecursiveModelIndex< Key >::LinearModel::slope.
|
inlinestatic |
Builds a linear regression model from all data points between the first
and last
.
offset
defines the first y-value. All y-values are scaled by compression_factor
.
Definition at line 171 of file Index.hpp.
References m::idx::RecursiveModelIndex< Key >::LinearModel::intercept, and m::idx::RecursiveModelIndex< Key >::LinearModel::slope.
|
inlinestatic |
Builds a linear spline model between the first
and last
data point.
offset
defines the first y-value. All y-values are scaled by compression_factor
.
Definition at line 156 of file Index.hpp.
References m::idx::RecursiveModelIndex< Key >::LinearModel::intercept, and m::idx::RecursiveModelIndex< Key >::LinearModel::slope.
double m::idx::RecursiveModelIndex< Key >::LinearModel::intercept |
double m::idx::RecursiveModelIndex< Key >::LinearModel::slope |