

PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 
java.lang.Object uk.ac.starlink.ast.Mapping.Spreader
public static class Mapping.Spreader
Controls the spreading scheme used by Mapping
's
rebinning methods. This class has no public constructors,
but provides static factory methods which generate Spreader
objects that can be passed to the rebin*
methods.
Method Summary  

static Mapping.Spreader 
gauss(int npix,
double fwhm)
Returns a resampling spreader which uses a exp(k*x*x) 1dimensional kernel. 
static Mapping.Spreader 
linear()
Returns a resampling spreader which samples using linear interpolation. 
static Mapping.Spreader 
nearest()
Returns a resampling spreader which samples from the nearest neighbour. 
static Mapping.Spreader 
sinc(int npix)
Returns a resampling spreader which uses a sinc(pi*x) 1dimensional kernel. 
static Mapping.Spreader 
sincCos(int npix,
double width)
Returns a resampling spreader which uses a sinc(pi*x).cos(k*pi*x) 1dimensional kernel. 
static Mapping.Spreader 
sincGauss(int npix,
double fwhm)
Returns a resampling spreader which uses a sinc(pi*x).exp(k*x*x) 1dimensional kernel. 
static Mapping.Spreader 
sincSinc(int npix,
double width)
Returns a resampling spreader which uses a sinc(pi*x).sinc(k*pi*x) 1dimensional kernel. 
Methods inherited from class java.lang.Object 

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
Method Detail 

public static Mapping.Spreader nearest()
public static Mapping.Spreader linear()
public static Mapping.Spreader sinc(int npix)
sinc(pi*x)
1dimensional kernel.
npix
 the number of pixels to contribute to the
interpolated result on either side of the
interpolation point in each dimension.
Execution time increases rapidly with this number.
Typically, a value of 2 is appropriate and the
minimum value used will be 1. A value of zero
or less may be given to indicate that a suitable
number of pixels should be calculated automatically.
public static Mapping.Spreader sincSinc(int npix, double width)
sinc(pi*x).sinc(k*pi*x)
1dimensional kernel.
npix
 the number of pixels to contribute to the
interpolated result on either side of the
interpolation point in each dimension.
Execution time increases rapidly with this number.
Typically, a value of 2 is appropriate and the
minimum value used will be 1. A value of zero
or less may be given to indicate that a suitable
number of pixels should be calculated automatically.width
 the number of pixels at which the envelope goes
to zero. Should be at least 1.0.
public static Mapping.Spreader sincCos(int npix, double width)
sinc(pi*x).cos(k*pi*x)
1dimensional kernel.
npix
 the number of pixels to contribute to the
interpolated result on either side of the
interpolation point in each dimension.
Execution time increases rapidly with this number.
Typically, a value of 2 is appropriate and the
minimum value used will be 1. A value of zero
or less may be given to indicate that a suitable
number of pixels should be calculated automatically.width
 the number of pixels at which the envelope goes
to zero. Should be at least 1.0.
public static Mapping.Spreader sincGauss(int npix, double fwhm)
sinc(pi*x).exp(k*x*x)
1dimensional kernel.
npix
 the number of pixels to contribute to the
interpolated result on either side of the
interpolation point in each dimension.
Execution time increases rapidly with this number.
Typically, a value of 2 is appropriate and the
minimum value used will be 1. A value of zero
or less may be given to indicate that a suitable
number of pixels should be calculated automatically.fwhm
 the full width at half maximum of the Gaussian
envelope. Should be at least 0.1.
public static Mapping.Spreader gauss(int npix, double fwhm)
exp(k*x*x)
1dimensional kernel.
npix
 the number of pixels to contribute to the
interpolated result on either side of the
interpolation point in each dimension.fwhm
 the full width at half maximum of the Gaussian
envelope. Should be at least 0.1.


PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 