public class GaussianTimeSeriesProcessor extends Object implements TimeSeriesProcessor<double[],Double,DoubleTimeSeries>
LinearInterpolationProcessor
followed by this processor.Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_GAUSS_TRUNCATE
The default number of sigmas at which the Gaussian function is truncated
when building a kernel
|
Constructor and Description |
---|
GaussianTimeSeriesProcessor(double sigma) |
Modifier and Type | Method and Description |
---|---|
static void |
convolveHorizontal(double[] data,
double[] kernel)
Convolve a double array
|
static double[] |
makeKernel(double sigma,
double truncate)
Construct a zero-mean Gaussian with the specified standard deviation.
|
void |
process(DoubleTimeSeries series) |
public static final double DEFAULT_GAUSS_TRUNCATE
public GaussianTimeSeriesProcessor(double sigma)
sigma
- the sigma of the guassian functionpublic static double[] makeKernel(double sigma, double truncate)
sigma
- the standard deviation of the Gaussiantruncate
- the number of sigmas from the centre at which to truncate the
Gaussianpublic static void convolveHorizontal(double[] data, double[] kernel)
data
- the image to convolve.kernel
- the convolution kernel.public void process(DoubleTimeSeries series)
process
in interface TimeSeriesProcessor<double[],Double,DoubleTimeSeries>
series
- alter this time series in place