herschel.ia.toolbox.spectrum.utils
public class ResamplingUtils extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static double |
getAverageWidth(Double1d wave)
Returns the average width found in the wave scale.
|
static Double1d |
getChannelBoundaries(Double1d freqIn) |
static java.lang.Double |
getLinearGridWidth(Double1d grid)
Returns the linear width if the grid is linear - otherwise return null.
|
static double |
getLowerBound(int k,
Double1d freq)
Return the lower bound for the channel with index k of the input grid.
|
static int |
getMaximumIndex(Double1d freqIn,
Double1d freqOut)
Returns the maximum index in the output frequency array that can be considered for the resampling.
|
static int |
getMinimumIndex(Double1d freqIn,
Double1d freqOut)
Returns the minimum index in the output frequency array that can be considered for the resampling.
|
static double |
getUpperBound(int k,
Double1d freq)
Return the upper bound for the channel with index k of the input grid.
|
static Double1d |
makeCommonGrid(Double1d[] gridsIn)
Construct a common uniform grid for a list of frequency scales.
|
static Double1d[] |
makeUniformGrid(Double1d[] gridIn)
Construct uniform grids for a list of frequency scales.
|
static Double1d |
makeUniformGrid(Double1d gridIn,
double stretchFactor)
Construct from the given grid a uniform grid.
|
static Double1d |
makeUniformGrid(double bound1,
double bound2,
double delta)
Construct a uniform grid with constant width 'delta' of given length and starting at a
specified minimum frequency and ending not before a specified maximum frequency.
|
static Double1d |
makeUniformGrid(double min,
double delta,
int numOfChannels)
Construct a uniform grid with constant width 'delta' of given length and given lower bound.
|
static void |
reverseOrder(Double1d array) |
static void |
reverseOrder(Int1d array) |
static void |
transformToFluxPerChannel(Double1d freq,
Double1d fluxPerFreq) |
static void |
transformToIntensities(Double1d freq,
Double1d flux) |
public static Double1d makeUniformGrid(Double1d gridIn,
double stretchFactor)
gridIn - stretchFactor - public static double getAverageWidth(Double1d wave)
wave - public static java.lang.Double getLinearGridWidth(Double1d grid)
grid - The input grid.public static Double1d[] makeUniformGrid(Double1d[] gridIn)
gridIn - public static Double1d makeCommonGrid(Double1d[] gridsIn)
gridsIn - public static Double1d makeUniformGrid(double min,
double delta,
int numOfChannels)
min: - minimum frequencydelta: - widthnumOfChannels: - lengthpublic static Double1d makeUniformGrid(double bound1,
double bound2,
double delta)
bound1: - minimum frequencybound2: - maximum frequencydelta: - widthpublic static void reverseOrder(Double1d array)
public static void reverseOrder(Int1d array)
public static void transformToFluxPerChannel(Double1d freq,
Double1d fluxPerFreq)
public static void transformToIntensities(Double1d freq,
Double1d flux)
public static Double1d getChannelBoundaries(Double1d freqIn)
public static int getMinimumIndex(Double1d freqIn,
Double1d freqOut)
freqIn - freqOut - public static int getMaximumIndex(Double1d freqIn,
Double1d freqOut)
freqIn - freqOut - public static double getLowerBound(int k,
Double1d freq)
k - freq - public static double getUpperBound(int k,
Double1d freq)
k - freq -