SampleStats constructor

SampleStats(
  1. List<num> sample
)

Implementation

SampleStats(this.sample)
    : sortedSample = Lazy<List<num>>(() {
        assertNotEmpty(sample);
        return sample..sort();
      }),
      _mean = Lazy<num>(() => sample.sum / sample.length);