|
285 | 285 | " '''create a coroutine that keeps track of descriptive\n", |
286 | 286 | " statistics of a data stream\n", |
287 | 287 | " \n", |
288 | | - " Params\n", |
289 | | - " ------\n", |
| 288 | + " Parameters\n", |
| 289 | + " ----------\n", |
290 | 290 | " stats : dict\n", |
291 | 291 | " dictrionary that will hold the statistics, i.e., number of values,\n", |
292 | 292 | " mean and standard deviation. The dictionary will contain None for\n", |
|
396 | 396 | " '''create a coroutine that keeps track of descriptive\n", |
397 | 397 | " statistics of a data stream\n", |
398 | 398 | " \n", |
399 | | - " Params\n", |
400 | | - " ------\n", |
| 399 | + " Parameters\n", |
| 400 | + " ----------\n", |
401 | 401 | " stats : dict\n", |
402 | 402 | " dictrionary that will hold the statistics, i.e., number of values,\n", |
403 | 403 | " mean and standard deviation. The dictionary will contain None for\n", |
|
710 | 710 | " def __init__(self, sum_value: float=0.0, sum2: float=0.0, n: int=0):\n", |
711 | 711 | " '''constructor for Stats objects\n", |
712 | 712 | " \n", |
713 | | - " Params\n", |
714 | | - " ------\n", |
| 713 | + " Parameters\n", |
| 714 | + " ----------\n", |
715 | 715 | " Either none, which initializes an object that has seen no data yet, or\n", |
716 | 716 | " \n", |
717 | 717 | " sum_value: float\n", |
|
777 | 777 | " '''functional operator, creates a new Stats object when a value is added\n", |
778 | 778 | " called as stats + value\n", |
779 | 779 | " \n", |
780 | | - " Params\n", |
781 | | - " ------\n", |
| 780 | + " Parameters\n", |
| 781 | + " ----------\n", |
782 | 782 | " value: float\n", |
783 | 783 | " new data value to be added to the statistics\n", |
784 | 784 | " \n", |
|
792 | 792 | " def __iadd__(self, value: float):\n", |
793 | 793 | " '''non-functional operator, updates the Stats object when a value is added\n", |
794 | 794 | " \n", |
795 | | - " Params\n", |
796 | | - " ------\n", |
| 795 | + " Parameters\n", |
| 796 | + " ----------\n", |
797 | 797 | " value: float\n", |
798 | 798 | " new data value to be added to the statistics\n", |
799 | 799 | " \n", |
|
1568 | 1568 | "name": "python", |
1569 | 1569 | "nbconvert_exporter": "python", |
1570 | 1570 | "pygments_lexer": "ipython3", |
1571 | | - "version": "3.10.9" |
| 1571 | + "version": "3.11.2" |
1572 | 1572 | } |
1573 | 1573 | }, |
1574 | 1574 | "nbformat": 4, |
|
0 commit comments