Package tech.tablesaw.columns.numbers
Class NumberInterpolator<T extends Number>
- java.lang.Object
-
- tech.tablesaw.interpolation.Interpolator<T>
-
- tech.tablesaw.columns.numbers.NumberInterpolator<T>
-
public class NumberInterpolator<T extends Number> extends Interpolator<T>
Creates a new column with missing cells filled based off the value of nearby cells.
Subclass to provide alternate interpolation strategies
-
-
Field Summary
Fields Modifier and Type Field Description protected NumericColumn<T>
col
-
Constructor Summary
Constructors Constructor Description NumberInterpolator(NumericColumn<T> col)
Constructs an interpolator for the given column
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoubleColumn
linear()
Linearly interpolates missing values.-
Methods inherited from class tech.tablesaw.interpolation.Interpolator
backfill, frontfill
-
-
-
-
Field Detail
-
col
protected final NumericColumn<T extends Number> col
-
-
Constructor Detail
-
NumberInterpolator
public NumberInterpolator(NumericColumn<T> col)
Constructs an interpolator for the given column
-
-
Method Detail
-
linear
public DoubleColumn linear()
Linearly interpolates missing values.
-
-