casacore
|
Compute two point auto-correlation functions from a lattice. More...
#include <LatticeTwoPtCorr.h>
Public Types | |
enum | Method { UNDEFINED, STRUCTUREFUNCTION, NMETHODS } |
Public Member Functions | |
LatticeTwoPtCorr () | |
Default constructor. More... | |
~LatticeTwoPtCorr () | |
Destructor. More... | |
void | autoCorrelation (MaskedLattice< T > &out, const MaskedLattice< T > &in, const IPosition &axes, Method method, Bool showProgress=True) const |
Compute specified autocorrelation function for the planes of the given TWO axes. More... | |
Static Public Member Functions | |
static IPosition | setUpShape (const IPosition &inShape, const IPosition &axes) |
Helper function to provide output lattice shape give the input shape and the axes to find the structure function over. More... | |
static Method | fromString (const String &method) |
Helper functions to convert method types to and from strings. More... | |
static String | toString (Method method) |
Private Types | |
typedef T(LatticeTwoPtCorr< T >::* | FuncPtr )(T d1, T d2) const |
Function Pointer typedef. More... | |
Private Member Functions | |
void | autoCorrelation (MaskedLattice< T > &out, const MaskedLattice< T > &in, const IPosition &axes, FuncPtr, Bool showProgress) const |
Do the iteration work. More... | |
void | check (LogIO &os, const MaskedLattice< T > &latOut, const MaskedLattice< T > &latIn, const IPosition &axes) const |
Check Output lattice shape. More... | |
T | structureFunction (T d1, T d2) const |
Compute structure function. More... | |
Compute two point auto-correlation functions from a lattice.
Public interface
This class allows you to compute two point correlation functions from lattices over planes of the specified two axes. At present, only autocorrelation is implemented and only the structure function is available.
The structure function is S(x,y) = < [lat(i,j) - lat(i+x,j+y)]**2 >
where x and y are absolute integer shifts (or lags).
Definition at line 81 of file LatticeTwoPtCorr.h.
|
private |
Function Pointer typedef.
Definition at line 128 of file LatticeTwoPtCorr.h.
enum casacore::LatticeTwoPtCorr::Method |
Enumerator | |
---|---|
UNDEFINED |
Undefined. |
STRUCTUREFUNCTION |
Structure Function. |
NMETHODS |
nMethods |
Definition at line 85 of file LatticeTwoPtCorr.h.
|
inline |
Default constructor.
Definition at line 99 of file LatticeTwoPtCorr.h.
|
inline |
Destructor.
Definition at line 103 of file LatticeTwoPtCorr.h.
void casacore::LatticeTwoPtCorr< T >::autoCorrelation | ( | MaskedLattice< T > & | out, |
const MaskedLattice< T > & | in, | ||
const IPosition & | axes, | ||
Method | method, | ||
Bool | showProgress = True |
||
) | const |
Compute specified autocorrelation function for the planes of the given TWO axes.
If the output lattice has a mask, it will first be set to False (bad) and then any output pixel with some contributing values will be set to True (good).
|
private |
Do the iteration work.
|
private |
Check Output lattice shape.
|
static |
Helper functions to convert method types to and from strings.
|
static |
Helper function to provide output lattice shape give the input shape and the axes to find the structure function over.
|
inlineprivate |
Compute structure function.
Definition at line 142 of file LatticeTwoPtCorr.h.
|
static |