The array
Optional
samples: numberThe number of samples (optional, default is 100 for "bootstrap" and the length of the array for "jackknife")
Optional
type: "bootstrap" | "jackknife" = "bootstrap"The type of resampling method, which can be "bootstrap" or "jackknife"
Performs resampling on an array depending on the specified resampling method.