template<class VecElemT, class HistArrayT>
Computes Weibull parameters for each histogram in the set and concatenates them into a vector.
Definition at line 58 of file ComputeWeibull.h. References Impala::Core::Histogram::Histogram1dSet< ArrayT >::Hist(), and Impala::Core::Vector::VectorSet< ArrayT >::Size(). Referenced by Impala::Core::Feature::VisSem::ComputeRegionDescriptor(), Impala::Core::Test::TestWeibull::Run(), Impala::Core::Feature::Weibull(), and Impala::Core::Feature::WeibullIRGB(). 00060 { 00061 typedef typename Histogram1dSet<HistArrayT>::HistT HistType; 00062 00063 int nrPar = 2 + ((storeMu) ? 1 : 0) + ((storeA) ? 1 : 0); 00064 for (int i=0 ; i<hSet->Size() ; i++) 00065 { 00066 HistType hist = hSet->Hist(i); 00067 FitWeibullMarginal<VecElemT> fit(hist.GetData(), hist.GetBinCount(), 00068 hist.GetLow(), hist.GetHigh()); 00069 int idx = i*nrPar; 00070 v[idx++] = fit.Beta(); 00071 v[idx++] = fit.Gamma(); 00072 if (storeMu) 00073 v[idx++] = fit.Mu(); 00074 if (storeA) 00075 v[idx++] = fit.A2(); 00076 } 00077 }
Here is the call graph for this function:
|