Return the square root of the population variance. See ``pvariance`` for arguments and other details. >>> pstdev([1.5, 2.5, 2.5, 2.75, 3.25, 4.75]) 0.986893273527251
(data, mu=None)
| 580 | |
| 581 | |
| 582 | def pstdev(data, mu=None): |
| 583 | """Return the square root of the population variance. |
| 584 | |
| 585 | See ``pvariance`` for arguments and other details. |
| 586 | |
| 587 | >>> pstdev([1.5, 2.5, 2.5, 2.75, 3.25, 4.75]) |
| 588 | 0.986893273527251 |
| 589 | |
| 590 | """ |
| 591 | var = pvariance(data, mu) |
| 592 | try: |
| 593 | return var.sqrt() |
| 594 | except AttributeError: |
| 595 | return math.sqrt(var) |
nothing calls this directly
no test coverage detected