...
This commit is contained in:
@@ -114,6 +114,7 @@ public:
|
||||
|
||||
std::vector<double> model_colon{}, model_colat{}; // fitting model values
|
||||
std::vector<double> colon_res{}, colat_res{}; // target - model
|
||||
std::vector<double> colon_weight{}, colat_weight; // Tukey's weights
|
||||
|
||||
#ifdef USE_BSPLINE_PCM
|
||||
int bspline_fit_err{}; // bivariate B-spline fitting exit code (see FITPACK)
|
||||
@@ -576,6 +577,9 @@ protected:
|
||||
result.colon_res.resize(numberOfPoints());
|
||||
result.colat_res.resize(numberOfPoints());
|
||||
|
||||
result.colon_weight = {weights.begin(), weights.begin() + numberOfPoints()};
|
||||
result.colat_weight = {weights.begin() + numberOfPoints(), weights.end()};
|
||||
|
||||
for (size_t i = 0; i < numberOfPoints(); ++i) {
|
||||
result.colon_res[i] = _table.colon_res[i] - result.model_colon[i]; // = target - model
|
||||
result.colat_res[i] = _table.colat_res[i] - result.model_colat[i]; // = target - model
|
||||
|
||||
Reference in New Issue
Block a user