public abstract class TimeSeriesInterpolation extends Object implements TimeSeriesProcessor<double[],Double,DoubleTimeSeries>
TimeSeries
dataConstructor and Description |
---|
TimeSeriesInterpolation()
The processor's times are set to default, i.e.
|
TimeSeriesInterpolation(long[] times) |
TimeSeriesInterpolation(long begin,
int steps,
long delta) |
TimeSeriesInterpolation(long begin,
long end,
int steps) |
TimeSeriesInterpolation(long begin,
long end,
long delta) |
Modifier and Type | Method and Description |
---|---|
DoubleTimeSeries |
interpolate(DoubleTimeSeries series) |
abstract DoubleTimeSeries |
interpolate(DoubleTimeSeries series,
long[] times) |
DoubleTimeSeries |
interpolate(DoubleTimeSeries series,
long begin,
int steps,
long delta)
Uses
interpolate(DoubleTimeSeries, long[]) to return an
interpolation of the construction TimeSeries from begin, for a
number of steps with a given delta between steps |
DoubleTimeSeries |
interpolate(DoubleTimeSeries series,
long begin,
long end,
int splits)
Uses
interpolate(DoubleTimeSeries,long[]) to return an
interpolation of the construction TimeSeries from begin, until
end with a delta which means that there are splits time instances |
DoubleTimeSeries |
interpolate(DoubleTimeSeries series,
long begin,
long end,
long delta)
Uses
interpolate(DoubleTimeSeries, long[]) to return an
interpolation of the construction TimeSeries between the times at
the required interval |
void |
process(DoubleTimeSeries ts) |
public TimeSeriesInterpolation()
public TimeSeriesInterpolation(long begin, long end, long delta)
begin
- end
- delta
- public TimeSeriesInterpolation(long begin, int steps, long delta)
begin
- steps
- delta
- public TimeSeriesInterpolation(long begin, long end, int steps)
begin
- the start of the new time seriesend
- the end of the new time seriessteps
- the steps between (begin = 0, end = 10, 6 steps will give 0,
2, 4, 6, 8, 10public TimeSeriesInterpolation(long[] times)
times
- the times used by the processorpublic DoubleTimeSeries interpolate(DoubleTimeSeries series, long begin, long end, long delta)
interpolate(DoubleTimeSeries, long[])
to return an
interpolation of the construction TimeSeries
between the times at
the required intervalseries
- begin
- time to startend
- time to enddelta
- the delta between time stepsDoubleTimeSeries
instance interpolated from the
construction TimeSeries
instancepublic DoubleTimeSeries interpolate(DoubleTimeSeries series, long begin, int steps, long delta)
interpolate(DoubleTimeSeries, long[])
to return an
interpolation of the construction TimeSeries
from begin, for a
number of steps with a given delta between stepsseries
- begin
- steps
- delta
- DoubleTimeSeries
instance interpolated from the
construction TimeSeries
instancepublic DoubleTimeSeries interpolate(DoubleTimeSeries series, long begin, long end, int splits)
interpolate(DoubleTimeSeries,long[])
to return an
interpolation of the construction TimeSeries
from begin, until
end with a delta which means that there are splits time instancesseries
- begin
- end
- splits
- DoubleTimeSeries
instance interpolated from the
construction TimeSeries
instancepublic DoubleTimeSeries interpolate(DoubleTimeSeries series)
series
- DoubleTimeSeries
interpolated with times provided
in the constructorpublic abstract DoubleTimeSeries interpolate(DoubleTimeSeries series, long[] times)
series
- times
- might be null, therefore some "defualt" time step should be
usedDoubleTimeSeries
instance interpolated from the
construction TimeSeries
instancepublic void process(DoubleTimeSeries ts)
process
in interface TimeSeriesProcessor<double[],Double,DoubleTimeSeries>
ts
- alter this time series in place