28 std::pair<double, double>
35 ExcMessage(
"x and y are expected to have the same size"));
39 "at least two points are required for linear regression fit"));
43 for (
unsigned int i = 0; i <
x.size(); ++i)
61 invK.vmult(X,
B,
false);
63 return std::make_pair(X(1), X(0));
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
#define Assert(cond, exc)
static ::ExceptionBase & ExcMessage(std::string arg1)
std::pair< double, double > linear_regression(const std::vector< double > &x, const std::vector< double > &y)