Skip to content

Commit

Permalink
Add using Statistics to some files
Browse files Browse the repository at this point in the history
  • Loading branch information
mestradam committed Jun 21, 2024
1 parent 724e15a commit a0d883e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
"outputs": [],
"cell_type": "code",
"source": [
"[ mean(float.(c.(img))) for c = [red,green,blue], img = [apple,banana] ]"
"using Statistics\n[ mean(float.(c.(img))) for c = [red,green,blue], img = [apple,banana] ]"
],
"metadata": {},
"execution_count": null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"outputs": [],
"cell_type": "code",
"source": [
"apple_red_amount = mean(Float64.(red.(apple)))\nbanana_red_amount = mean(Float64.(red.(banana)));\n\n\"The average value of red in the apple is $apple_red_amount, \" *\n\"while the average value of red in the banana is $banana_red_amount.\""
"using Statistics\napple_red_amount = mean(Float64.(red.(apple)))\nbanana_red_amount = mean(Float64.(red.(banana)));\n\n\"The average value of red in the apple is $apple_red_amount, \" *\n\"while the average value of red in the banana is $banana_red_amount.\""
],
"metadata": {},
"execution_count": null
Expand Down

0 comments on commit a0d883e

Please sign in to comment.