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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • fill_gaps

      public static void fill_gaps​(double[] values, int maxConsecutiveGaps) throws InterpolationException
      Fill 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.