Package smile.data.vector
Interface NumberVector
- All Superinterfaces:
BaseVector<Number,
,Number, Stream<Number>> Serializable
,Vector<Number>
An immutable number object vector.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
fillna
(double value) Fill null/NaN/Inf values using the specified value.static NumberVector
Creates a named number vector.static NumberVector
Creates a named number vector.static NumberVector
of
(StructField field, Number[] vector) Creates a named number vector.Methods inherited from interface smile.data.vector.BaseVector
apply, apply, array, field, get, measure, name, size, stream, toDoubleArray, toDoubleArray, toIntArray, toIntArray, toStringArray, toStringArray, type
-
Method Details
-
fillna
void fillna(double value) Fill null/NaN/Inf values using the specified value.- Parameters:
value
- the value to replace NAs.
-
of
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
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
Creates a named number vector.- Parameters:
field
- the struct field of vector.vector
- the data of vector.- Returns:
- the vector.
-