bootstrap method

  1. @override
NumericColumn bootstrap({
  1. int? seed,
})

A bootstrap sample from this column.

Implementation

@override
NumericColumn bootstrap({int? seed}) {
  final rand = math.Random(seed);
  return NumericColumn(
      [for (var _ = 0; _ < length; _++) this[rand.nextInt(length)]]);
}