Class Interpolator<T>

java.lang.Object
tech.tablesaw.interpolation.Interpolator<T>
Direct Known Subclasses:
NumberInterpolator

public class Interpolator<T> extends Object
Creates a new column with missing cells filled based off the value of nearby cells. This class contains methods that are agnostic of column type.
  • Field Details

    • col

      protected final Column<T> col
      The column being interpolated
  • Constructor Details

    • Interpolator

      public Interpolator(Column<T> column)
      Constructs an object for performing interpolation on the given column
  • Method Details

    • backfill

      public Column<T> backfill()
      Fills missing values with the next non-missing value
    • frontfill

      public Column<T> frontfill()
      Fills missing values with the last non-missing value