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
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)
Freq_Node * pred
Predecessor node in level-order traversal.
Linear regression (least squares fitting) using GSL.
TEST_F(LFitTest, PerfectLineFit)
DynList< T > maps(const C &c, Op op)
Classic map operation.
Linear regression calculator using least squares method.