Interface NumberVector

All Superinterfaces:
BaseVector<Number,Number,Stream<Number>>, Serializable, Vector<Number>

public interface NumberVector extends Vector<Number>
An immutable number object vector.
  • Method Details

    • fillna

      void fillna(double value)
      Fill null/NaN/Inf values using the specified value.
      Parameters:
      value - the value to replace NAs.
    • of

      static NumberVector of(String name, Class<?> clazz, Number[] vector)
      Creates a named number vector.
      Parameters:
      name - the name of vector.
      clazz - the class of data type.
      vector - the data of vector.
      Returns:
      the vector.
    • of

      static NumberVector of(String name, DataType type, Number[] vector)
      Creates a named number vector.
      Parameters:
      name - the name of vector.
      type - the data type of vector.
      vector - the data of vector.
      Returns:
      the vector.
    • of

      static NumberVector of(StructField field, Number[] vector)
      Creates a named number vector.
      Parameters:
      field - the struct field of vector.
      vector - the data of vector.
      Returns:
      the vector.