WSL/SLF GitLab Repository

Commit b70cac4c authored by Mathias Bavay's avatar Mathias Bavay
Browse files

Slightly improved documentation on spatial interpolations and now really...

Slightly improved documentation on spatial interpolations and now really allowing linear regression on only 2 points
parent da905b36
This diff is collapsed.
......@@ -35,7 +35,7 @@ class Zero : public FitModel {
class SimpleLinear : public FitModel {
public:
SimpleLinear() : fixed_lapse_rate(IOUtils::nodata) {fit_ready = false; nParam = 2; min_nb_pts = 3; regname = "SimpleLinear";};
SimpleLinear() : fixed_lapse_rate(IOUtils::nodata) {fit_ready = false; nParam = 2; min_nb_pts = 2; regname = "SimpleLinear";};
void setData(const std::vector<double>& in_X, const std::vector<double>& in_Y);
bool fit();
double f(const double& x) const;
......@@ -47,7 +47,7 @@ class SimpleLinear : public FitModel {
class NoisyLinear : public SimpleLinear {
public:
NoisyLinear() {fit_ready = false; nParam = 2; min_nb_pts = 3; regname = "NoisyLinear";};
NoisyLinear() {fit_ready = false; nParam = 2; min_nb_pts = 2; regname = "NoisyLinear";};
bool fit();
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment