From 31518ef95b5c429ee0d5af9d48197df00d6bd3fe Mon Sep 17 00:00:00 2001 From: yendoz <102748767+yendoz@users.noreply.github.com> Date: Thu, 5 May 2022 16:39:35 +0900 Subject: [PATCH] Update 09_day_higher_order_functions.md --- .../09_day_higher_order_functions.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/09_Day_Higher_order_functions/09_day_higher_order_functions.md b/09_Day_Higher_order_functions/09_day_higher_order_functions.md index 80319b3..3277c12 100644 --- a/09_Day_Higher_order_functions/09_day_higher_order_functions.md +++ b/09_Day_Higher_order_functions/09_day_higher_order_functions.md @@ -662,7 +662,6 @@ const products = [ ] ``` - ```` 3. \*\*\* Try to develop a program which calculate measure of central tendency of a sample(mean, median, mode) and measure of variability(range, variance, standard deviation). In addition to those measures find the min, max, count, percentile, and frequency distribution of the sample. You can create an object called statistics and create all the functions which do statistical calculations as method for the statistics object. Check the output below. @@ -679,8 +678,7 @@ const products = [ console.log('Mode: ', statistics.mode()) // {'mode': 26, 'count': 5} console.log('Variance: ',statistics.var()) // 17.5 console.log('Standard Deviation: ', statistics.std()) // 4.2 - console.log('Variance: ',statistics.var()) // 17.5 - console.log('Frequency Distribution: ',statistics.freqDist()) # [(20.0, 26), (16.0, 27), (12.0, 32), (8.0, 37), (8.0, 34), (8.0, 33), (8.0, 31), (8.0, 24), (4.0, 38), (4.0, 29), (4.0, 25)] + console.log('Frequency Distribution: ',statistics.freqDist()) // [(20.0, 26), (16.0, 27), (12.0, 32), (8.0, 37), (8.0, 34), (8.0, 33), (8.0, 31), (8.0, 24), (4.0, 38), (4.0, 29), (4.0, 25)] ``` ```sh