Mantid
|
#include <WeightingStrategy.h>
Public Member Functions | |
virtual double | weightAt (const double &adjX, const double &ix, const double &adjY, const double &iy)=0 |
Calculate the weight at distance from epicenter. More... | |
virtual double | weightAt (const Mantid::Kernel::V3D &distance)=0 |
Calculate the weight at distance from epicenter. More... | |
WeightingStrategy () | |
Constructor. More... | |
WeightingStrategy (const double cutOff) | |
Constructor. More... | |
virtual | ~WeightingStrategy ()=default |
Destructor. More... | |
Protected Attributes | |
double | m_cutOff |
Cutoff member. More... | |
Abstract weighting strategy, which can be applied to calculate individual weights for each pixel based upon disance from epicenter. Generated for use with SmoothNeighbours.
Definition at line 23 of file WeightingStrategy.h.
Mantid::Algorithms::WeightingStrategy::WeightingStrategy | ( | const double | cutOff | ) |
Mantid::Algorithms::WeightingStrategy::WeightingStrategy | ( | ) |
Constructor.
Definition at line 26 of file WeightingStrategy.cpp.
|
virtualdefault |
Destructor.
|
pure virtual |
Calculate the weight at distance from epicenter.
adjX | : The number of Y (vertical) adjacent pixels to average together |
ix | : current index x |
adjY | : The number of X (vertical) adjacent pixels to average together |
iy | : current index y |
Implemented in Mantid::Algorithms::FlatWeighting, Mantid::Algorithms::NullWeighting, Mantid::Algorithms::GaussianWeightingnD, Mantid::Algorithms::LinearWeighting, and Mantid::Algorithms::ParabolicWeighting.
|
pure virtual |
Calculate the weight at distance from epicenter.
distance | : difference between the central detector location and the nearest neighbour |
Implemented in Mantid::Algorithms::FlatWeighting, Mantid::Algorithms::LinearWeighting, Mantid::Algorithms::ParabolicWeighting, Mantid::Algorithms::NullWeighting, and Mantid::Algorithms::GaussianWeightingnD.
|
protected |
Cutoff member.
Definition at line 50 of file WeightingStrategy.h.
Referenced by Mantid::Algorithms::LinearWeighting::weightAt(), Mantid::Algorithms::ParabolicWeighting::weightAt(), and Mantid::Algorithms::GaussianWeightingnD::weightAt().