Questions concerning 'Prelude: Thinking About Assembly Lines'
CMoebus opened this issue · 3 comments
Hi,
I have three questions.
- First, what does it mean to be a 'bad' widget? Is it a widget above or below a threshold ?
- Second, what is picked from the assembly line ? The good or the bad widget ? Or vice versa, what is left on the assembly line? The bad or the good widget ?
- Third, what is the logic of the array three ascending thresholds in 'condition(_.isEqual([.6, .7, .8], goodWidgetSeq)'. Wouldn't it be better to ask whether all elements in goodWidgetSeq would be greater than the sampled threshold ?
Best, Claus
Since I looked at this yesterday, I'll share my understanding:
what does it mean to be a 'bad' widget?
A widget is represented by a real number. If this real number is greater than the threshold the widget is good, otherwise it's bad.
what is picked from the assembly line
The factory (makeWidgetSeq
) rejects bad widgets, only good widgets are included in the factory's output (the returned array).
what is the logic of the array three ascending thresholds in 'condition(_.isEqual([.6, .7, .8], goodWidgetSeq)'
These represent 3 (good) widgets that have been observed coming out of the factory. From this (and the prior) we want to infer the threshold.
I'm going to close this for now -- feel free to open a new issue if you have additional questions or comments!