Skip to content

Commit 6bda044

Browse files
committed
Fix file format of broken model
1 parent e6a0293 commit 6bda044

1 file changed

Lines changed: 31 additions & 31 deletions

File tree

Sample Models/Mathematics/Probability/ProbLab/Unverified/Random Combinations and Permutations.nlogox

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<model version="NetLogo 7.0.0-beta0" snapToGrid="true">
2+
<model version="NetLogo 7.0.0-beta2" snapToGrid="true">
33
<code><![CDATA[globals [
44
instructions ;; The messages that appear in the instructions monitor
55
@@ -490,58 +490,58 @@ end
490490
; Copyright 2004 Uri Wilensky.
491491
; See Info tab for full copyright and license.]]></code>
492492
<widgets>
493-
<view x="493" maxPycor="2" updateMode="0" wrappingAllowedX="true" y="70" frameRate="30.0" minPycor="-2" height="254" showTickCounter="false" patchSize="50.0" fontSize="10" wrappingAllowedY="true" width="254" tickCounterLabel="ticks" maxPxcor="2" minPxcor="-2"></view>
493+
<view x="493" wrappingAllowedX="true" y="70" frameRate="30.0" minPycor="-2" height="254" showTickCounter="false" patchSize="50.0" fontSize="10" wrappingAllowedY="true" width="254" tickCounterLabel="ticks" maxPycor="2" updateMode="0" maxPxcor="2" minPxcor="-2"></view>
494494
<button x="5" y="65" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="136" display="Setup">setup</button>
495495
<button x="5" y="105" height="35" disableUntilTicks="true" forever="true" kind="Observer" width="136" display="Create Combi">create-combi</button>
496496
<button x="5" y="145" height="35" disableUntilTicks="true" forever="true" kind="Observer" width="136" display="Search Combi">search-combi</button>
497-
<slider x="145" step="1" y="65" height="55" min="1" direction="Horizontal" max="5" default="3.0" variable="width" width="250" display="width"></slider>
498-
<slider x="145" step="1" y="125" height="55" min="1" direction="Horizontal" max="2" default="1.0" variable="height" width="250" display="height"></slider>
499-
<slider x="145" step="1" y="185" height="55" min="2" direction="Horizontal" max="6" default="2.0" variable="#choices" width="250" display="#choices"></slider>
500-
<switch x="5" y="185" height="37" on="true" variable="dice?" width="135" display="dice?"></switch>
501-
<switch x="5" y="225" height="37" on="false" variable="single-success?" width="135" display="single-success?"></switch>
502-
<chooser x="145" y="245" height="55" variable="analysis-type" current="2" width="250" display="analysis-type">
497+
<slider x="145" step="1" y="65" max="5" width="250" display="width" height="55" min="1" direction="Horizontal" default="3.0" variable="width"></slider>
498+
<slider x="145" step="1" y="125" max="2" width="250" display="height" height="55" min="1" direction="Horizontal" default="1.0" variable="height"></slider>
499+
<slider x="145" step="1" y="185" max="6" width="250" display="#choices" height="55" min="2" direction="Horizontal" default="2.0" variable="#choices"></slider>
500+
<switch x="5" y="185" height="40" on="true" variable="dice?" width="135" display="dice?"></switch>
501+
<switch x="5" y="225" height="40" on="false" variable="single-success?" width="135" display="single-success?"></switch>
502+
<chooser x="145" y="245" height="60" variable="analysis-type" current="2" width="250" display="analysis-type">
503503
<choice type="string" value="permutations"></choice>
504504
<choice type="string" value="combination"></choice>
505505
<choice type="string" value="both"></choice>
506506
</chooser>
507-
<monitor x="10" precision="3" y="330" height="55" fontSize="11" width="100" display="Combination">count-combi-successes</monitor>
508-
<monitor x="115" precision="3" y="330" height="55" fontSize="11" width="102" display="Permutation">count-permis-successes</monitor>
509-
<note x="220" y="310" height="18" textColorDark="-1" backgroundDark="0" textColorLight="-16777216" backgroundLight="0" fontSize="11" width="195">Ratio Between Outcome Means:</note>
510-
<monitor x="280" precision="2" y="330" height="55" fontSize="11" width="115" display="Combi : Permis">ratio</monitor>
511-
<note x="10" y="310" height="18" textColorDark="-1" backgroundDark="0" textColorLight="-16777216" backgroundLight="0" fontSize="11" width="185">Successes in This Sample:</note>
512-
<switch x="10" y="590" height="37" on="true" variable="bars?" width="98" display="bars?"></switch>
513-
<plot x="10" yMax="10.0" yAxis="count" y="390" xMin="0.0" height="195" legend="true" xMax="100.0" autoPlotX="true" autoPlotY="true" yMin="0.0" width="381" xAxis="successes per sample" display="Successes per Sample Distribution">
507+
<monitor x="10" precision="3" y="330" height="60" fontSize="11" width="100" display="Combination">count-combi-successes</monitor>
508+
<monitor x="115" precision="3" y="330" height="60" fontSize="11" width="102" display="Permutation">count-permis-successes</monitor>
509+
<note x="220" y="310" backgroundDark="0" fontSize="11" width="195" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Ratio Between Outcome Means:</note>
510+
<monitor x="280" precision="2" y="330" height="60" fontSize="11" width="115" display="Combi : Permis">ratio</monitor>
511+
<note x="10" y="310" backgroundDark="0" fontSize="11" width="185" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Successes in This Sample:</note>
512+
<switch x="10" y="590" height="40" on="true" variable="bars?" width="98" display="bars?"></switch>
513+
<plot x="10" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="count" y="390" xMin="0.0" height="195" legend="true" xMax="100.0" yMin="0.0" width="381" xAxis="successes per sample" display="Successes per Sample Distribution">
514514
<setup></setup>
515515
<update></update>
516-
<pen color="-16777216" legend="true" interval="1.0" mode="1" display="combination">
516+
<pen interval="1.0" mode="1" display="combination" color="-16777216" legend="true">
517517
<setup></setup>
518518
<update></update>
519519
</pen>
520-
<pen color="-2674135" legend="true" interval="1.0" mode="1" display="permutations">
520+
<pen interval="1.0" mode="1" display="permutations" color="-2674135" legend="true">
521521
<setup></setup>
522522
<update></update>
523523
</pen>
524524
</plot>
525-
<note x="400" y="240" height="96" textColorDark="-1" backgroundDark="0" textColorLight="-16777216" backgroundLight="0" fontSize="11" width="85"><![CDATA[The model
525+
<note x="400" y="240" backgroundDark="0" fontSize="11" width="85" markdown="false" height="96" textColorDark="-1" textColorLight="-16777216" backgroundLight="0"><![CDATA[The model
526526
guesses your
527527
combination
528528
here ----->]]></note>
529529
<button x="400" y="185" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="93" display="Hide/Reveal">hide/reveal</button>
530-
<note x="400" y="135" height="48" textColorDark="-1" backgroundDark="0" textColorLight="-16777216" backgroundLight="0" fontSize="11" width="90"><![CDATA[Set your
530+
<note x="400" y="135" backgroundDark="0" fontSize="11" width="90" markdown="false" height="48" textColorDark="-1" textColorLight="-16777216" backgroundLight="0"><![CDATA[Set your
531531
combination
532532
here ----->]]></note>
533-
<monitor x="5" precision="0" y="7" height="55" fontSize="11" width="740">instructions</monitor>
534-
<note x="456" y="353" height="18" textColorDark="-1" backgroundDark="0" textColorLight="-16777216" backgroundLight="0" fontSize="11" width="295">Sample Space and Numbers of Choices by Type:</note>
535-
<monitor x="545" precision="3" y="430" height="55" fontSize="11" width="100"># 5</monitor>
536-
<monitor x="545" precision="3" y="375" height="55" fontSize="11" width="100"># 2</monitor>
537-
<monitor x="455" precision="3" y="430" height="55" fontSize="11" width="100"># 4</monitor>
538-
<monitor x="455" precision="3" y="375" height="55" fontSize="11" width="100"># 1</monitor>
539-
<monitor x="645" precision="3" y="375" height="55" fontSize="11" width="100"># 3</monitor>
540-
<monitor x="645" precision="3" y="430" height="55" fontSize="11" width="100"># 6</monitor>
541-
<note x="455" y="495" height="18" textColorDark="-1" backgroundDark="0" textColorLight="-16777216" backgroundLight="0" fontSize="11" width="215">Samples and Steps This Run:</note>
542-
<monitor x="455" precision="0" y="515" height="55" fontSize="11" width="100" display="#Samples">samples-counter</monitor>
543-
<slider x="455" step="100" y="575" height="55" min="100" direction="Horizontal" max="100000" default="1000.0" variable="sample-size" width="250" display="sample-size"></slider>
544-
<monitor x="560" precision="3" y="515" height="55" fontSize="11" width="147" display="#Steps in This Sample">count-steps</monitor>
533+
<monitor x="5" precision="0" y="7" height="60" fontSize="11" width="740">instructions</monitor>
534+
<note x="456" y="353" backgroundDark="0" fontSize="11" width="295" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Sample Space and Numbers of Choices by Type:</note>
535+
<monitor x="545" precision="3" y="430" height="60" fontSize="11" width="100"># 5</monitor>
536+
<monitor x="545" precision="3" y="375" height="60" fontSize="11" width="100"># 2</monitor>
537+
<monitor x="455" precision="3" y="430" height="60" fontSize="11" width="100"># 4</monitor>
538+
<monitor x="455" precision="3" y="375" height="60" fontSize="11" width="100"># 1</monitor>
539+
<monitor x="645" precision="3" y="375" height="60" fontSize="11" width="100"># 3</monitor>
540+
<monitor x="645" precision="3" y="430" height="60" fontSize="11" width="100"># 6</monitor>
541+
<note x="455" y="495" backgroundDark="0" fontSize="11" width="215" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Samples and Steps This Run:</note>
542+
<monitor x="455" precision="0" y="515" height="60" fontSize="11" width="100" display="#Samples">samples-counter</monitor>
543+
<slider x="455" step="100" y="575" max="100000" width="250" display="sample-size" height="55" min="100" direction="Horizontal" default="1000.0" variable="sample-size"></slider>
544+
<monitor x="560" precision="3" y="515" height="60" fontSize="11" width="147" display="#Steps in This Sample">count-steps</monitor>
545545
</widgets>
546546
<info><![CDATA[## WHAT IS IT?
547547

0 commit comments

Comments
 (0)