MCPcopy Index your code
hub / github.com/python/cpython / from_samples

Method from_samples

Lib/statistics.py:1246–1248  ·  view source on GitHub ↗

Make a normal distribution instance from sample data.

(cls, data)

Source from the content-addressed store, hash-verified

1244
1245 @classmethod
1246 def from_samples(cls, data):
1247 "Make a normal distribution instance from sample data."
1248 return cls(*_mean_stdev(data))
1249
1250 def samples(self, n, *, seed=None):
1251 "Generate *n* samples for a given mean and standard deviation."

Callers 1

Calls 2

_mean_stdevFunction · 0.85
clsClass · 0.50

Tested by 1