Skip to content

Commit 63b3c85

Browse files
committed
Convert ProbLab to new sizes
1 parent 14377c1 commit 63b3c85

5 files changed

Lines changed: 65 additions & 65 deletions

File tree

Curricular Models/ProbLab/4 Block Stalagmites.nlogox

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -485,20 +485,16 @@ end
485485
; See Info tab for full copyright and license.]]></code>
486486
<widgets>
487487
<view x="270" wrappingAllowedX="true" y="15" frameRate="30.0" minPycor="-87" height="529" showTickCounter="true" patchSize="3.0" fontSize="10" wrappingAllowedY="true" width="277" tickCounterLabel="ticks" maxPycor="87" updateMode="1" maxPxcor="45" minPxcor="-45"></view>
488-
<slider x="285" step="1" y="570" max="100" display="probability-to-be-target-color" height="33" min="0" direction="Horizontal" default="50.0" variable="probability-to-be-target-color" units="%" width="250" sizeVersion="0"></slider>
489-
<button x="140" y="60" height="43" disableUntilTicks="true" forever="true" kind="Observer" display="Go" width="125" sizeVersion="0">go</button>
490-
<button x="10" y="15" height="43" disableUntilTicks="false" forever="false" kind="Observer" display="Setup" width="255" sizeVersion="0">setup</button>
491-
<switch x="50" y="250" height="33" on="true" variable="keep-repeats?" display="keep-repeats?" width="180" sizeVersion="0"></switch>
492-
<monitor x="70" precision="3" y="360" height="45" fontSize="11" display="events found" width="139" sizeVersion="0">(word samples-found "/" total-samples-to-find "=" %-full)</monitor>
493-
<switch x="50" y="320" height="33" on="false" variable="magnify?" display="magnify?" width="180" sizeVersion="0"></switch>
494-
<switch x="50" y="285" height="33" on="false" variable="stop-at-all-found?" display="stop-at-all-found?" width="180" sizeVersion="0"></switch>
495-
<button x="10" y="60" height="43" disableUntilTicks="true" forever="false" kind="Observer" display="Go Once" width="125" sizeVersion="0">go</button>
496-
<button x="10" y="115" height="36" disableUntilTicks="false" forever="false" kind="Observer" display="Organize" width="125" sizeVersion="0">organize-results</button>
497-
<button x="10" y="155" height="36" disableUntilTicks="false" forever="false" kind="Observer" display="Disorganize" width="125" sizeVersion="0">disorganize-results</button>
498-
<button x="140" y="115" height="75" disableUntilTicks="true" forever="true" kind="Observer" display="Go-Org" width="125" sizeVersion="0">go-org</button>
499-
<button x="10" y="205" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="Paint" width="125" sizeVersion="0">pop</button>
500-
<button x="140" y="205" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="Unpaint" width="125" sizeVersion="0">unpop</button>
501-
<plot x="10" autoPlotX="true" yMax="15.0" autoPlotY="true" yAxis="# Events" y="455" xMin="0.0" height="150" legend="false" xMax="20.0" yMin="0.0" xAxis="Number of Outcomes per Event" display="Events by Number of Outcomes" width="250" sizeVersion="0">
488+
<slider x="285" step="1" y="570" max="100" width="250" display="probability-to-be-target-color" height="50" min="0" direction="Horizontal" default="50.0" variable="probability-to-be-target-color" units="%"></slider>
489+
<button x="10" y="15" height="43" disableUntilTicks="false" forever="false" kind="Observer" width="255" display="Setup">setup</button>
490+
<switch x="50" y="266" height="40" on="true" variable="keep-repeats?" width="180" display="keep-repeats?"></switch>
491+
<monitor x="70" precision="3" y="403" height="60" fontSize="11" width="139" display="events found">(word samples-found "/" total-samples-to-find "=" %-full)</monitor>
492+
<switch x="50" y="356" height="40" on="false" variable="magnify?" width="180" display="magnify?"></switch>
493+
<switch x="50" y="311" height="40" on="false" variable="stop-at-all-found?" width="180" display="stop-at-all-found?"></switch>
494+
<button x="10" y="115" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="125" display="Organize">organize-results</button>
495+
<button x="10" y="160" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="125" display="Disorganize">disorganize-results</button>
496+
<button x="10" y="214" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="125" display="Paint">pop</button>
497+
<plot x="10" autoPlotX="true" yMax="15.0" autoPlotY="true" yAxis="# Events" y="520" xMin="0.0" height="175" legend="false" xMax="20.0" yMin="0.0" width="250" xAxis="Number of Outcomes per Event" display="Events by Number of Outcomes">
502498
<setup></setup>
503499
<update><![CDATA[if plot? [
504500
let sample-value-summaries [ sample-summary-value ] of sample-organizers
@@ -527,7 +523,11 @@ end
527523
<update></update>
528524
</pen>
529525
</plot>
530-
<switch x="90" y="415" height="33" on="true" variable="plot?" display="plot?" width="103" sizeVersion="0"></switch>
526+
<switch x="90" y="473" height="40" on="true" variable="plot?" width="103" display="plot?"></switch>
527+
<button x="140" y="214" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="125" display="Unpaint">unpop</button>
528+
<button x="140" y="115" height="85" disableUntilTicks="true" forever="true" kind="Observer" width="125" display="Go-Org">go-org</button>
529+
<button x="10" y="65" height="43" disableUntilTicks="true" forever="false" kind="Observer" width="125" display="Go Once">go</button>
530+
<button x="140" y="65" height="43" disableUntilTicks="true" forever="true" kind="Observer" width="125" display="Go">go</button>
531531
</widgets>
532532
<info><![CDATA[## WHAT IS IT?
533533

Curricular Models/ProbLab/4 Block Two Stalagmites.nlogox

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -610,33 +610,33 @@ end
610610
; Copyright 2009 Uri Wilensky.
611611
; See Info tab for full copyright and license.]]></code>
612612
<widgets>
613-
<view x="455" wrappingAllowedX="true" y="15" frameRate="30.0" minPycor="-91" height="553" showTickCounter="true" patchSize="3.0" fontSize="10" wrappingAllowedY="true" width="277" tickCounterLabel="ticks" maxPycor="91" updateMode="1" maxPxcor="45" minPxcor="-45"></view>
614-
<slider x="10" step="1" y="15" max="100" display="probability-to-be-target-color" height="33" min="0" direction="Horizontal" default="50.0" variable="probability-to-be-target-color" units="%" width="235" sizeVersion="0"></slider>
615-
<button x="170" y="95" height="33" disableUntilTicks="true" forever="true" kind="Observer" display="Go" width="75" sizeVersion="0">go</button>
616-
<button x="90" y="95" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="Go Once" width="75" sizeVersion="0">go</button>
617-
<button x="10" y="135" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="Organize Results" width="155" sizeVersion="0">organize-results</button>
618-
<button x="10" y="175" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="Disorganize Results" width="155" sizeVersion="0">disorganize-results</button>
619-
<button x="170" y="135" height="75" disableUntilTicks="true" forever="true" kind="Observer" display="Go-org" width="75" sizeVersion="0">go-org</button>
620-
<button x="10" y="215" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="Paint" width="115" sizeVersion="0">pop</button>
621-
<button x="130" y="215" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="Un-Paint" width="115" sizeVersion="0">unpop</button>
622-
<switch x="45" y="55" height="33" on="false" variable="stop-at-top?" display="stop-at-top?" width="163" sizeVersion="0"></switch>
623-
<plot x="250" autoPlotX="true" yMax="10.0" autoPlotY="true" y="15" xMin="0.0" height="579" legend="false" xMax="16.0" yMin="0.0" display="Individual 4-Blocks" width="200" sizeVersion="0">
613+
<view x="485" wrappingAllowedX="true" y="15" frameRate="30.0" minPycor="-91" height="553" showTickCounter="true" patchSize="3.0" fontSize="10" wrappingAllowedY="true" width="277" tickCounterLabel="ticks" maxPycor="91" updateMode="1" maxPxcor="45" minPxcor="-45"></view>
614+
<slider x="10" step="1" y="15" max="100" width="235" display="probability-to-be-target-color" height="50" min="0" direction="Horizontal" default="50.0" variable="probability-to-be-target-color" units="%"></slider>
615+
<button x="170" y="119" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="75" display="Go">go</button>
616+
<button x="90" y="119" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="75" display="Go Once">go</button>
617+
<button x="10" y="166" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="155" display="Organize Results">organize-results</button>
618+
<button x="10" y="213" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="155" display="Disorganize Results">disorganize-results</button>
619+
<button x="10" y="260" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="115" display="Paint">pop</button>
620+
<button x="130" y="260" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="115" display="Un-Paint">unpop</button>
621+
<switch x="45" y="72" height="40" on="false" variable="stop-at-top?" width="163" display="stop-at-top?"></switch>
622+
<plot x="250" autoPlotX="true" yMax="10.0" autoPlotY="true" y="15" xMin="0.0" height="579" legend="false" xMax="16.0" yMin="0.0" width="230" display="Individual 4-Blocks">
624623
<setup></setup>
625624
<update></update>
626625
<pen interval="1.0" mode="1" display="default" color="-16777216" legend="true">
627626
<setup></setup>
628627
<update></update>
629628
</pen>
630629
</plot>
631-
<plot x="745" autoPlotX="true" yMax="10.0" autoPlotY="true" y="15" xMin="0.0" height="579" legend="false" xMax="5.0" yMin="0.0" display="Categorized 4-Blocks" width="200" sizeVersion="0">
630+
<plot x="775" autoPlotX="true" yMax="10.0" autoPlotY="true" y="15" xMin="0.0" height="579" legend="false" xMax="5.0" yMin="0.0" width="230" display="Categorized 4-Blocks">
632631
<setup></setup>
633632
<update></update>
634633
<pen interval="1.0" mode="1" display="default" color="-16777216" legend="true">
635634
<setup></setup>
636635
<update></update>
637636
</pen>
638637
</plot>
639-
<button x="10" y="95" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="Setup" width="75" sizeVersion="0">setup</button>
638+
<button x="10" y="119" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="75" display="Setup">setup</button>
639+
<button x="170" y="166" height="85" disableUntilTicks="true" forever="true" kind="Observer" width="75" display="Go-org">go-org</button>
640640
</widgets>
641641
<info><![CDATA[## WHAT IS IT?
642642

Curricular Models/ProbLab/4 Blocks.nlogox

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,20 +142,20 @@ end
142142
; See Info tab for full copyright and license.]]></code>
143143
<widgets>
144144
<view x="15" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="0" height="294" showTickCounter="true" patchSize="145.0" fontSize="10" wrappingAllowedY="true" width="294" tickCounterLabel="ticks" maxPycor="1" updateMode="1" maxPxcor="1" minPxcor="0"></view>
145-
<button x="15" y="335" height="40" disableUntilTicks="false" forever="false" kind="Observer" display="Setup" width="95" sizeVersion="0">setup</button>
146-
<button x="115" y="335" height="39" disableUntilTicks="true" forever="true" kind="Observer" display="Go" width="95" sizeVersion="0">go</button>
147-
<plot x="320" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="how many times" y="10" xMin="0.0" height="369" legend="false" xMax="5.0" yMin="0.0" xAxis="targets" display="Distribution by Target Color" width="238" sizeVersion="0">
145+
<button x="15" y="335" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="95" display="Setup">setup</button>
146+
<button x="115" y="335" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="95" display="Go">go</button>
147+
<plot x="320" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="how many times" y="10" xMin="0.0" height="369" legend="false" xMax="5.0" yMin="0.0" width="238" xAxis="targets" display="Distribution by Target Color">
148148
<setup></setup>
149149
<update></update>
150150
<pen interval="1.0" mode="1" display="target-color" color="-16777216" legend="true">
151151
<setup></setup>
152152
<update></update>
153153
</pen>
154154
</plot>
155-
<switch x="60" y="420" height="33" on="false" variable="one-by-one-choices?" display="one-by-one-choices?" width="200" sizeVersion="0"></switch>
156-
<button x="215" y="335" height="40" disableUntilTicks="true" forever="false" kind="Observer" display="Go Once" width="100" sizeVersion="0">go</button>
157-
<slider x="15" step="1" y="380" max="100" display="probability-to-be-target-color" height="33" min="0" direction="Horizontal" default="50.0" variable="probability-to-be-target-color" units="%" width="300" sizeVersion="0"></slider>
158-
<switch x="375" y="385" height="33" on="false" variable="stratified?" display="stratified?" width="130" sizeVersion="0"></switch>
155+
<switch x="60" y="438" height="40" on="false" variable="one-by-one-choices?" width="200" display="one-by-one-choices?"></switch>
156+
<button x="215" y="335" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="100" display="Go Once">go</button>
157+
<slider x="15" step="1" y="381" max="100" width="300" display="probability-to-be-target-color" height="50" min="0" direction="Horizontal" default="50.0" variable="probability-to-be-target-color" units="%"></slider>
158+
<switch x="375" y="385" height="40" on="false" variable="stratified?" width="130" display="stratified?"></switch>
159159
</widgets>
160160
<info><![CDATA[## WHAT IS IT?
161161

Curricular Models/ProbLab/Histo Blocks.nlogox

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -261,30 +261,30 @@ end
261261
; See Info tab for full copyright and license.]]></code>
262262
<widgets>
263263
<view x="260" wrappingAllowedX="true" y="225" frameRate="30.0" minPycor="-8" height="361" showTickCounter="false" patchSize="21.0" fontSize="7" wrappingAllowedY="true" width="382" tickCounterLabel="ticks" maxPycor="8" updateMode="1" maxPxcor="8" minPxcor="-9"></view>
264-
<plot x="255" autoPlotX="true" yMax="1.0" autoPlotY="true" y="10" xMin="0.0" height="213" legend="false" xMax="5.0" yMin="0.0" display="Expected Outcome Distribution" width="390" sizeVersion="0">
264+
<plot x="255" autoPlotX="true" yMax="1.0" autoPlotY="true" y="10" xMin="0.0" height="213" legend="false" xMax="5.0" yMin="0.0" width="390" display="Expected Outcome Distribution">
265265
<setup></setup>
266266
<update></update>
267267
<pen interval="1.0" mode="1" display="default" color="-16777216" legend="true">
268268
<setup></setup>
269269
<update></update>
270270
</pen>
271271
</plot>
272-
<slider x="265" step="0.05" y="615" max="1" display="p" height="33" min="0" direction="Horizontal" default="0.6" variable="p" width="385" sizeVersion="0"></slider>
273-
<button x="15" y="10" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="Setup" width="105" sizeVersion="0">setup</button>
274-
<button x="125" y="10" height="33" disableUntilTicks="true" forever="true" kind="Observer" display="Go" width="105" sizeVersion="0">go</button>
275-
<switch x="15" y="50" height="33" on="true" variable="plot-individual-blocks?" display="plot-individual-blocks?" width="215" sizeVersion="0"></switch>
276-
<monitor x="10" precision="3" y="245" height="45" fontSize="11" display="number of items in this column" width="235" sizeVersion="0">number-of-items-in-column-text</monitor>
277-
<monitor x="10" precision="3" y="310" height="45" fontSize="11" display="probability of each item in this column" width="235" sizeVersion="0">probability-of-items-in-column-text</monitor>
278-
<monitor x="10" precision="4" y="375" height="45" fontSize="11" display="n-choose-k * compound p" width="235" sizeVersion="0">number-of-items-in-column * probability-of-items-in-column</monitor>
279-
<note x="18" y="133" height="70" backgroundDark="0" fontSize="11" width="220" markdown="false" textColorLight="-16777216" backgroundLight="0">Press Setup, then Go.
272+
<button x="15" y="10" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="105" display="Setup">setup</button>
273+
<button x="125" y="10" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="105" display="Go">go</button>
274+
<switch x="15" y="57" height="40" on="true" variable="plot-individual-blocks?" width="215" display="plot-individual-blocks?"></switch>
275+
<monitor x="10" precision="3" y="266" height="60" fontSize="11" width="235" display="number of items in this column">number-of-items-in-column-text</monitor>
276+
<monitor x="10" precision="3" y="354" height="60" fontSize="11" width="235" display="probability of each item in this column">probability-of-items-in-column-text</monitor>
277+
<monitor x="10" precision="4" y="442" height="60" fontSize="11" width="235" display="n-choose-k * compound p">number-of-items-in-column * probability-of-items-in-column</monitor>
278+
<note x="18" y="154" backgroundDark="0" fontSize="11" width="220" markdown="false" height="70" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Press Setup, then Go.
280279
Use the slider to change the p value.
281280
Click on a column in the View to see
282281
its information in the monitors.
283282
</note>
284-
<switch x="15" y="88" height="33" on="false" variable="auto-adjust-y-axis?" display="auto-adjust-y-axis?" width="215" sizeVersion="0"></switch>
285-
<note x="15" y="220" height="18" textColorLight="-16777216" fontSize="11" width="150" markdown="false">Binomial Function:</note>
286-
<note x="205" y="290" height="18" textColorLight="-16777216" fontSize="11" width="25" markdown="false">X</note>
287-
<note x="205" y="355" height="18" textColorLight="-16777216" fontSize="11" width="26" markdown="false">=</note>
283+
<switch x="15" y="102" height="40" on="false" variable="auto-adjust-y-axis?" width="215" display="auto-adjust-y-axis?"></switch>
284+
<note x="15" y="241" backgroundDark="0" fontSize="11" width="150" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Binomial Function:</note>
285+
<note x="205" y="331" backgroundDark="0" fontSize="11" width="25" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">X</note>
286+
<note x="205" y="419" backgroundDark="0" fontSize="11" width="26" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">=</note>
287+
<slider x="260" step="0.05" y="595" max="1" width="385" display="p" height="50" min="0" direction="Horizontal" default="0.6" variable="p"></slider>
288288
</widgets>
289289
<info><![CDATA[## WHAT IS IT?
290290

0 commit comments

Comments
 (0)