Commit f85180df67ac42c2b0ed4a4f8fabb541eba90269

Authored by Jordi Inglada
1 parent c030bcce

BUG: wrong number of features if remove duplicates

Showing 1 changed file with 4 additions and 3 deletions   Show diff stats
include/iota2FeatureExtraction.h
... ... @@ -207,9 +207,10 @@ protected:
207 207 return std::fabs(x - m_NoDataValue)<0.1;
208 208 }))
209 209 {
210   - outVec[copyOffset+date_counter] = m_NoDataValue;
211   - outVec[copyOffset+m_NumberOfDates+date_counter] = m_NoDataValue;
212   - outVec[copyOffset+m_NumberOfDates*2+date_counter] = m_NoDataValue;
  210 + for(size_t feat=0; feat<m_NumberOfFeatures; ++feat)
  211 + {
  212 + outVec[copyOffset+m_NumberOfDates*feat+date_counter] = m_NoDataValue;
  213 + }
213 214 }
214 215 else
215 216 {
... ...