Commit aeef3931dda3da79c9fd01d1556c3d02f99e25a2

Authored by Jordi Inglada
1 parent b1e2eb8d
Exists in camelback

WAR: reorder member vars for initialization

Showing 1 changed file with 5 additions and 6 deletions   Show diff stats
src/Library/phenoFunctions.h
... ... @@ -46,6 +46,11 @@ using ApproximationResultType = std::tuple<CoefficientType, MinMaxType, VectorTy
46 46  
47 47 class ParameterCostFunction : public vnl_least_squares_function
48 48 {
  49 +private:
  50 + unsigned int nbDates;
  51 + VectorType y;
  52 + VectorType t;
  53 + FunctionType phenoFunction;
49 54 public:
50 55 ParameterCostFunction(unsigned int nbPars, unsigned int nbD, const VectorType& yy, const VectorType& tt, FunctionType func) :
51 56 vnl_least_squares_function(nbPars, nbD, no_gradient), nbDates(nbD), y(yy), t(tt), phenoFunction(std::move(func)) {}
... ... @@ -57,12 +62,6 @@ public:
57 62 for(auto i=0; i<nbDates; ++i)
58 63 fx[i] = (y[i] - yy[i]);
59 64 }
60   -
61   -private:
62   - VectorType y;
63   - VectorType t;
64   - unsigned int nbDates;
65   - FunctionType phenoFunction;
66 65 };
67 66  
68 67 /** Gaussian weighting of a vector. The gaussian is centered on the maximum of the profile
... ...