29 std::pair<double, double>
36 ExcMessage(
"x and y are expected to have the same size"));
40 "at least two points are required for linear regression fit"));
44 for (
unsigned int i = 0; i <
x.
size(); ++i)
62 invK.vmult(X,
B,
false);
64 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)