Class ArrayLinearInterpolation
java.lang.Object
de.tu_bs.isbs.util.math.interpolation.ArrayLinearInterpolation
public class ArrayLinearInterpolation
extends java.lang.Object
Datenlücken in Arrays (repräsentiert durch NaN) ergänzen.
- Author:
- reiser
-
Method Summary
Modifier and Type Method Description static void
fill_gaps(double[] values, int maxConsecutiveGaps)
Fill gaps (indicated by NaNs) in a linearly spaced array of values using linear interpolation.
-
Method Details
-
fill_gaps
public static void fill_gaps(double[] values, int maxConsecutiveGaps) throws InterpolationExceptionFill gaps (indicated by NaNs) in a linearly spaced array of values using linear interpolation.- Parameters:
values
-maxConsecutiveGaps
-- Throws:
InterpolationException
- if number of consecutive gaps exceeds maxConsecutiveGaps; if first or last value is NaN.
-