MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / from_samples

Method from_samples

tools/python-3.11.9-amd64/Lib/statistics.py:1188–1190  ·  view source on GitHub ↗

Make a normal distribution instance from sample data.

(cls, data)

Source from the content-addressed store, hash-verified

1186
1187 @classmethod
1188 def from_samples(cls, data):
1189 "Make a normal distribution instance from sample data."
1190 return cls(*_mean_stdev(data))
1191
1192 def samples(self, n, *, seed=None):
1193 "Generate *n* samples for a given mean and standard deviation."

Callers

nothing calls this directly

Calls 1

_mean_stdevFunction · 0.85

Tested by

no test coverage detected