Browse Source

Fixed typo

Clemens-Alexander Brust 11 years ago
parent
commit
1814124857
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cbaselib/Example.cpp

+ 1 - 1
cbaselib/Example.cpp

@@ -228,7 +228,7 @@ bool Examples::wrapExamplesAroundFeatureMatrix(const Matrix &p_MatFeaturesColumW
 
 
     if(p_VecLabels.size() != t_iNumSamples) // for every columnwise sample there need to be a label
     if(p_VecLabels.size() != t_iNumSamples) // for every columnwise sample there need to be a label
         return false;
         return false;
-    p_Examples.reserve( t_iNumSamples );
+    p_Examples.resize( t_iNumSamples );
     const double *pDataPtr = p_MatFeaturesColumWiseSamples.getDataPointer();
     const double *pDataPtr = p_MatFeaturesColumWiseSamples.getDataPointer();
     
     
 #ifdef NICE_USELIB_OPENMP
 #ifdef NICE_USELIB_OPENMP