Kernel estimate class. More...
Public Types | |
typedef std::multimap< float, float > | ContributionList |
Map from x coord to weight, ATTN avoid map.find, etc. with float key. More... | |
Public Member Functions | |
KernelEstimate (const float sigma) | |
Constructor. More... | |
float | Sample (const float x) const |
Sample the parameterised distribution at a specified x coordinate. More... | |
const ContributionList & | GetContributionList () const |
Get the contribution list. More... | |
float | GetSigma () const |
Get the assigned width. More... | |
void | AddContribution (const float x, const float weight) |
Add a contribution to the distribution. More... | |
Private Attributes | |
ContributionList | m_contributionList |
The contribution list. More... | |
const float | m_sigma |
The assigned width. More... | |
Kernel estimate class.
Definition at line 49 of file RPhiFeatureTool.h.
typedef std::multimap<float, float> lar_content::RPhiFeatureTool::KernelEstimate::ContributionList |
Map from x coord to weight, ATTN avoid map.find, etc. with float key.
Definition at line 68 of file RPhiFeatureTool.h.
|
inline |
Constructor.
sigma | the width associated with the kernel estimate |
Definition at line 183 of file RPhiFeatureTool.h.
void lar_content::RPhiFeatureTool::KernelEstimate::AddContribution | ( | const float | x, |
const float | weight | ||
) |
Add a contribution to the distribution.
x | the position |
weight | the weight |
Definition at line 236 of file RPhiFeatureTool.cc.
|
inline |
Get the contribution list.
Definition at line 191 of file RPhiFeatureTool.h.
|
inline |
Get the assigned width.
Definition at line 198 of file RPhiFeatureTool.h.
float lar_content::RPhiFeatureTool::KernelEstimate::Sample | ( | const float | x | ) | const |
Sample the parameterised distribution at a specified x coordinate.
x | the position at which to sample |
Definition at line 215 of file RPhiFeatureTool.cc.
|
private |
The contribution list.
Definition at line 93 of file RPhiFeatureTool.h.
|
private |
The assigned width.
Definition at line 94 of file RPhiFeatureTool.h.