Mantid
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Mantid::Algorithms::ParabolicWeighting Class Reference

#include <WeightingStrategy.h>

Inheritance diagram for Mantid::Algorithms::ParabolicWeighting:
Mantid::Algorithms::WeightingStrategy

Public Member Functions

 ParabolicWeighting (const double cutOff)
 Constructor. More...
 
double weightAt (const double &adjX, const double &ix, const double &adjY, const double &iy) override
 Calculate the weight at distance from epicenter using parabolic scaling. More...
 
double weightAt (const Mantid::Kernel::V3D &) override
 Implementation doesn't make sense on this type. More...
 
- Public Member Functions inherited from Mantid::Algorithms::WeightingStrategy
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...
 

Additional Inherited Members

- Protected Attributes inherited from Mantid::Algorithms::WeightingStrategy
double m_cutOff
 Cutoff member. More...
 

Detailed Description

Definition at line 75 of file WeightingStrategy.h.

Constructor & Destructor Documentation

◆ ParabolicWeighting()

Mantid::Algorithms::ParabolicWeighting::ParabolicWeighting ( const double  cutOff)

Constructor.

Parameters
cutOff: distance cutOff

Definition at line 84 of file WeightingStrategy.cpp.

Member Function Documentation

◆ weightAt() [1/2]

double Mantid::Algorithms::ParabolicWeighting::weightAt ( const double &  adjX,
const double &  ix,
const double &  adjY,
const double &  iy 
)
overridevirtual

Calculate the weight at distance from epicenter using parabolic scaling.

Parameters
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
Returns
weight calculated

Implements Mantid::Algorithms::WeightingStrategy.

Definition at line 103 of file WeightingStrategy.cpp.

◆ weightAt() [2/2]

double Mantid::Algorithms::ParabolicWeighting::weightAt ( const Mantid::Kernel::V3D distance)
overridevirtual

Implementation doesn't make sense on this type.

Parameters
distance:
Returns
weighting

Implements Mantid::Algorithms::WeightingStrategy.

Definition at line 91 of file WeightingStrategy.cpp.

References Mantid::Algorithms::WeightingStrategy::m_cutOff, Mantid::Kernel::V3D::X(), and Mantid::Kernel::V3D::Y().


The documentation for this class was generated from the following files: