1#include <gtest/gtest.h>
12 return std::abs(a - b) < eps;
91 Array<double> y = {2.5, 4.2, 6.1, 7.8, 10.3, 12.1, 13.9, 16.2, 17.8, 20.1};
232 for (
size_t i = 0; i < x.
size(); ++i)
270 for (
int i = 0; i < 1000; ++i)
273 y.append(2.5 * i + 10.0);
290 for (
int i = -10; i <= 20; ++i)
302 for (
int i = 0; i < 100; ++i)
Simple dynamic array with automatic resizing and functional operations.
constexpr size_t size() const noexcept
Return the number of elements stored in the stack.
T & append(const T &data)
Append a copy of data
Minimal std::expected-style result type for C++20.
bool approx_equal(double a, double b, double eps=1e-6)
bool approx_equal(double a, double b, double tol=EPSILON)
__gmp_expr< T, __gmp_unary_expr< __gmp_expr< T, U >, __gmp_y1_function > > y1(const __gmp_expr< T, U > &expr)
size_t blossom_maximum_cardinality_matching(const GT &g, DynDlist< typename GT::Arc * > &matching, SA sa=SA())
Alias of compute_maximum_cardinality_general_matching().
Freq_Node * pred
Predecessor node in level-order traversal.
Linear regression (least squares fitting) using GSL.
TEST_F(LFitTest, PerfectLineFit)
Linear regression calculator using least squares method.
double sumsq
Sum of squared residuals.
std::pair< double, double > predict(double x) const noexcept
Predict y-value and error for given x.
double r2
Coefficient of determination.
double m
Slope of fitted line.
double c
Y-intercept of fitted line.
double mse
Mean squared error.
double sigma
Standard deviation of errors.