LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
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.
References m_sigma.
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.
Referenced by lar_content::RPhiFeatureTool::FillKernelEstimate().
|
inline |
Get the contribution list.
Definition at line 192 of file RPhiFeatureTool.h.
References m_contributionList.
Referenced by lar_content::RPhiFeatureTool::GetFastScore(), lar_content::RPhiFeatureTool::GetFullScore(), and lar_content::RPhiFeatureTool::GetMidwayScore().
|
inline |
Get the assigned width.
Definition at line 199 of file RPhiFeatureTool.h.
References m_sigma.
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.
References f.
Referenced by lar_content::RPhiFeatureTool::GetFullScore(), and lar_content::RPhiFeatureTool::GetMidwayScore().
|
private |
The contribution list.
Definition at line 93 of file RPhiFeatureTool.h.
Referenced by GetContributionList().
|
private |
The assigned width.
Definition at line 94 of file RPhiFeatureTool.h.
Referenced by GetSigma(), and KernelEstimate().