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

template<class VecElemT, class HistElemT>
void Impala::Core::Histogram::ComputeWeibull ( Vector::VectorTem< VecElemT > &  v,
Histogram1dTem< HistElemT >  hist,
bool  storeMu,
bool  storeA 
)

Computes Weibull parameters for given histogram and puts them in a vector.

Definition at line 39 of file ComputeWeibull.h.

References Impala::Core::Histogram::FitWeibullMarginal< HistT >::A2(), Impala::Core::Histogram::FitWeibullMarginal< HistT >::Gamma(), Impala::Core::Histogram::Histogram1dTem< ElemT >::GetBinCount(), Impala::Core::Vector::VectorTem< ElemT >::GetData(), Impala::Core::Histogram::Histogram1dTem< ElemT >::GetHigh(), Impala::Core::Histogram::Histogram1dTem< ElemT >::GetLow(), and Impala::Core::Histogram::FitWeibullMarginal< HistT >::Mu().

00041 {
00042     FitWeibullMarginal<VecElemT> fit(hist.GetData(), hist.GetBinCount(),
00043                                      hist.GetLow(), hist.GetHigh());
00044     v[0] = fit.Beta();
00045     v[1] = fit.Gamma();
00046     int idx = 2;
00047     if (storeMu)
00048         v[idx++] = fit.Mu();
00049     if (storeA)
00050         v[idx] = fit.A2();
00051 }

Here is the call graph for this function:


Generated on Fri Mar 19 11:12:05 2010 for ImpalaSrc by  doxygen 1.5.1