Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

FeatureTable* Impala::Core::Training::ApplyConceptsHelperFik::LoadFeatures ( const FeatureLocator featLoc  )  [inline, virtual]

Implements Impala::Core::Training::ApplyConceptsHelper.

Definition at line 40 of file ApplyConceptsHelperFik.h.

References Impala::Core::Feature::WeightedFeatureList::GetFeature(), ILOG_ERROR, ILOG_INFO, mFeatureDefs, mFeatures, Impala::Persistency::FeatureLocator::SetFeatureString(), Impala::Core::Table::Table::Size(), and Impala::Core::Feature::WeightedFeatureList::Size().

00041     {
00042         typedef Persistency::FeatureTableRepository FeatureTableRepository;
00043         int sizeCheck = -1;
00044         for (int i=0 ; i<mFeatureDefs.Size() ; i++)
00045         {
00046             FeatureLocator fLoc = featLoc;
00047             fLoc.SetFeatureString(mFeatureDefs.GetFeature(i));
00048             FeatureTable* feature = FeatureTableRepository().Get(fLoc);
00049             if (sizeCheck == -1)
00050             {
00051                 sizeCheck = feature->Size();
00052                 ILOG_INFO("size of apply set is " << sizeCheck);
00053             }
00054             if (feature->Size() != sizeCheck)
00055             {
00056                 ILOG_ERROR("Size mismatch in the FeatureData for the dataset to"
00057                            << " apply to: have " << sizeCheck << " and " <<
00058                            feature->Size());
00059                 return 0;
00060             }
00061             mFeatures.push_back(feature);
00062         }
00063         return mFeatures[0];
00064     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:21:11 2011 for ImpalaSrc by  doxygen 1.5.1