Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,31 @@
|
|||
Mean.
|
||||
|
||||
Chef has no way to detect EOF, so rather than interpreting
|
||||
some arbitrary number as meaning "end of input", this program
|
||||
expects the first input to be the sample size. Pass in the samples
|
||||
themselves as the other inputs. For example, if you wanted to
|
||||
compute the mean of 10, 100, 47, you could pass in 3, 10, 100, and
|
||||
47. To test the "zero-length vector" case, you need to pass in 0.
|
||||
|
||||
Ingredients.
|
||||
0 g Sample Size
|
||||
0 g Counter
|
||||
0 g Current Sample
|
||||
|
||||
Method.
|
||||
Take Sample Size from refrigerator.
|
||||
Put Sample Size into mixing bowl.
|
||||
Fold Counter into mixing bowl.
|
||||
Put Current Sample into mixing bowl.
|
||||
Loop Counter.
|
||||
Take Current Sample from refrigerator.
|
||||
Add Current Sample into mixing bowl.
|
||||
Endloop Counter until looped.
|
||||
If Sample Size.
|
||||
Divide Sample Size into mixing bowl.
|
||||
Put Counter into 2nd mixing bowl.
|
||||
Fold Sample Size into 2nd mixing bowl.
|
||||
Endif until ifed.
|
||||
Pour contents of mixing bowl into baking dish.
|
||||
|
||||
Serves 1.
|
||||
Loading…
Add table
Add a link
Reference in a new issue