dissection_index
darts_preprocessing.engineering.dissection_index
¶
_run_cupy
¶
_run_cupy(data, d: int)
Source code in darts-preprocessing/src/darts_preprocessing/engineering/dissection_index.py
_run_dask_numpy
¶
_run_dask_numpy(
data: dask.array.Array, d: int
) -> dask.array.Array
Source code in darts-preprocessing/src/darts_preprocessing/engineering/dissection_index.py
_run_gpu
¶
Source code in darts-preprocessing/src/darts_preprocessing/engineering/dissection_index.py
_run_numpy
¶
Source code in darts-preprocessing/src/darts_preprocessing/engineering/dissection_index.py
dissection_index
¶
dissection_index(
agg: xarray.DataArray,
window_size: int = 3,
name: str | None = "dissection_index",
) -> xarray.DataArray
Compute the dissection index of a 2D array.
Parameters:
-
agg
(xarray.DataArray
) –The input data array.
-
window_size
(int
, default:3
) –The size of the window to use for the computation. Defaults to 3.
-
name
(str | None
, default:'dissection_index'
) –The name of the output data array. Defaults to "dissection_index".
Returns: