sampling 1.0.0 copy "sampling: ^1.0.0" to clipboard
sampling: ^1.0.0 copied to clipboard

outdatedDart 1 only

Various algorithms for selection of a subset (a statistical sample) of individuals from within a statistical population to estimate characteristics of the whole population.

example/sampling_example.dart

import 'dart:math';

import 'package:sampling/sampling.dart';

void main() {
  final sampler = new ReservoirSampler(25, random: new Random.secure());
  sampler.addAll(new List.generate(10000, (i) => i));
  print(sampler.getSample());
}
2
likes
0
pub points
22%
popularity

Publisher

verified publisheragilord.com

Various algorithms for selection of a subset (a statistical sample) of individuals from within a statistical population to estimate characteristics of the whole population.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on sampling