Sign in:

Weighted averages

Home Forums Cubelets Forum Weighted averages

This topic contains 2 replies, has 2 voices, and was last updated by  Wheeler Memorial Library 10 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #9775

    From my experiments with a one line robot book-ended by two sense Cubelets, it appears that the battery and passive Cubelets contribute to the computation of the weighted average read by the act Cubelets.

    This can be tested using the bar graph Cubelet.

    What is going on here? I will be explaining this behavior of the Cubelets to a club soon and would like to let them know the nature of this behavior. In short, it seems the passive Cubelet is not truly passive as it seems to be factored into the computation of the weighted average governing the behavior of the act Cubelets…


    Stu Barwick

    You’ve found one of the more subtle aspects of Cubelets! Without going into too much detail… Cubelets are all robots and they coordinate their actions by “talking” to each other. What they communicate is a “block value,” a simple number. The weighted average is a calculation of the numbers that are shared from Cubelet to Cubelet.

    The weighted average is the result of the numbers that are passed to a given Cubelet and the “distance” a given Cubelet is from any other Cubelet. The further away any Cubelet is, the lower the contribution to the weighted average. This is why a Passive Cubelet doesn’t directly alter a block value but is factored in as a measure of distance.

    Sorry, that is a rather complicated answer, but your intuition is guiding you in the right direction!

    • This reply was modified 10 months ago by  Stu Barwick.

    Thank you Stu!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.