| Modifier and Type | Method and Description |
|---|---|
DataArray |
build()
Return a new
DataArray. |
DataArray.Builder |
set(int index,
double value)
Set the
value at index in the DataArray. |
DataArray.Builder |
transform(DoubleUnaryOperator function)
Transform the
DataArray at all indices. |
DataArray.Builder |
transformRange(int lower,
int upper,
DoubleUnaryOperator function)
Transform the
DataArray at a specified range, [lower,
upper). |
DataArray.Builder |
transformRange(Range<Integer> range,
DoubleUnaryOperator function)
Transform the
DataArray at a specified Range. |
public DataArray build()
DataArray.DataArraypublic DataArray.Builder set(int index, double value)
value at index in the DataArray.index - to set the valuevalue - at indexBuilder to chainpublic DataArray.Builder transform(DoubleUnaryOperator function)
DataArray at all indices.function - to transform the dataArrayBuilder to chainpublic DataArray.Builder transformRange(Range<Integer> range, DoubleUnaryOperator function)
DataArray at a specified Range.range - of indices to transform the DataArrayfunction - to transform the DataArrayBuilder to chainpublic DataArray.Builder transformRange(int lower, int upper, DoubleUnaryOperator function)
DataArray at a specified range, [lower,
upper).lower - inclusive indexupper - exclusive indexfunction - to apply to DataArrayBuilder to chain