﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?application progid="SMath Studio Desktop" version="0.99.7921.69"?>
<worksheet xmlns="http://smath.info/schemas/worksheet/1.0">
  <settings ppi="96">
    <identity>
      <id>9a11cfaf-b87f-4d6b-9321-84972669fce9</id>
      <revision>54</revision>
    </identity>
    <metadata lang="ger">
      <author>Johannes Piel</author>
    </metadata>
    <metadata lang="eng">
      <author>Johannes Piel</author>
    </metadata>
    <calculation>
      <precision>4</precision>
      <exponentialThreshold>5</exponentialThreshold>
      <trailingZeros>false</trailingZeros>
      <significantDigitsMode>false</significantDigitsMode>
      <roundingMode>0</roundingMode>
      <fractions>decimal</fractions>
    </calculation>
    <pageModel active="false" viewMode="1" printGrid="false" printAreas="true" simpleEqualsOnly="false" printBackgroundImages="true">
      <paper id="9" orientation="Portrait" width="827" height="1169" />
      <margins left="39" right="39" top="49" bottom="49" />
      <header alignment="Center" color="#a9a9a9">&amp;[DATE] &amp;[TIME] - &amp;[FILENAME]</header>
      <footer alignment="Center" color="#a9a9a9">&amp;[PAGENUM] / &amp;[COUNT]</footer>
      <backgrounds />
    </pageModel>
    <dependencies>
      <assembly name="SMath Studio Desktop" version="0.99.7921.69" guid="a37cba83-b69c-4c71-9992-55ff666763bd" />
      <assembly name="MathRegion" version="1.11.7921.69" guid="02f1ab51-215b-466e-a74d-5d8b1cf85e8d" />
      <assembly name="Custom Functions" version="1.1.7840.30466" guid="18dadffd-79a3-4cf9-aee1-d66deb0ea720" />
      <assembly name="SpecialFunctions" version="1.12.7921.69" guid="2814e667-4e12-48b1-8d51-194e480eabc5" />
      <assembly name="TextRegion" version="1.11.7921.69" guid="485d28c5-349a-48b6-93be-12a35a1c1e39" />
      <assembly name="Writer Region" version="0.23.8034.36139" guid="5922d677-323f-4327-8c68-be902d8339ad" />
      <assembly name="Statistical Tools" version="1.0.6824.32561" guid="76f6e9f5-ac86-4ffb-9e4d-284c8daecaf9" />
      <assembly name="X-Y Plot Region (JXCharts)" version="0.2.8037.8305" guid="c12231ec-4873-43c1-a7d0-a167ebd17066" />
    </dependencies>
  </settings>
  <regions type="content">
    <region left="63" top="18" width="468" height="135" color="#000000" fontSize="10" showInputData="false">
      <math optimize="2" decimalPlaces="3" exponentialThreshold="15" trailingZeros="true">
        <input>
          <e type="operand">N</e>
          <e type="operand">μ</e>
          <e type="operand">σ</e>
          <e type="function" args="3">rnorm</e>
          <e type="operand">N'</e>
          <e type="operand">N</e>
          <e type="operand">20</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">:</e>
          <e type="operand">R</e>
          <e type="operand">N'</e>
          <e type="operand">1</e>
          <e type="function" args="2">matrix</e>
          <e type="operator" args="2">:</e>
          <e type="operand">i</e>
          <e type="operand">1</e>
          <e type="operand">N'</e>
          <e type="function" args="2">range</e>
          <e type="operand">R</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">20</e>
          <e type="function" args="1">Random</e>
          <e type="operand">μ</e>
          <e type="operand">σ</e>
          <e type="function" args="3">ICDF.Normal</e>
          <e type="operand">2</e>
          <e type="function" args="2">col</e>
          <e type="operator" args="2">:</e>
          <e type="function" args="3">for</e>
          <e type="operand">R</e>
          <e type="operand">R</e>
          <e type="function" args="1">mat2sys</e>
          <e type="function" args="1">sys2mat</e>
          <e type="operator" args="2">:</e>
          <e type="operand">4</e>
          <e type="operand">1</e>
          <e type="function" args="6">line</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="1044" top="171" width="167" height="43" color="#000000" fontSize="10">
      <math optimize="2">
        <input>
          <e type="operand">numbin</e>
          <e type="operand">v</e>
          <e type="operand">min</e>
          <e type="operator" args="2">-</e>
          <e type="operand">size</e>
          <e type="operator" args="2">/</e>
          <e type="function" args="1">Floor</e>
          <e type="operand">1</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="72" top="180" width="502" height="255" color="#000000" fontSize="10">
      <math optimize="2" decimalPlaces="3" exponentialThreshold="15" trailingZeros="true">
        <input>
          <e type="operand">size</e>
          <e type="operand">min</e>
          <e type="operand">max</e>
          <e type="operand">vx</e>
          <e type="function" args="4">hist</e>
          <e type="operand">numbins</e>
          <e type="operand">max</e>
          <e type="operand">min</e>
          <e type="operator" args="2">-</e>
          <e type="operand">size</e>
          <e type="operator" args="2">/</e>
          <e type="function" args="1">Ceil</e>
          <e type="operator" args="2">:</e>
          <e type="operand">numbin</e>
          <e type="operand">vx</e>
          <e type="operand">min</e>
          <e type="operator" args="2">-</e>
          <e type="operand">size</e>
          <e type="operator" args="2">/</e>
          <e type="function" args="1">Floor</e>
          <e type="operand">1</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
          <e type="operand">h</e>
          <e type="operand">numbins</e>
          <e type="function" args="2">el</e>
          <e type="operand">0</e>
          <e type="operator" args="2">:</e>
          <e type="operand">norm</e>
          <e type="operand">1</e>
          <e type="operand">size</e>
          <e type="operand">vx</e>
          <e type="function" args="1">rows</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">:</e>
          <e type="operand">i</e>
          <e type="operand">numbin</e>
          <e type="operand">h</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">h</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">norm</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
          <e type="operand">i</e>
          <e type="operand">1</e>
          <e type="operand">numbins</e>
          <e type="function" args="3">lele</e>
          <e type="operand" style="string">nop</e>
          <e type="function" args="3">cases</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="function" args="3">line</e>
          <e type="function" args="3">for</e>
          <e type="operand">x</e>
          <e type="operand">min</e>
          <e type="operand">1</e>
          <e type="operand">numbins</e>
          <e type="function" args="2">range</e>
          <e type="operand">0.5</e>
          <e type="operator" args="2">-</e>
          <e type="bracket">(</e>
          <e type="operand">size</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
          <e type="operand">x</e>
          <e type="operand">h</e>
          <e type="function" args="2">augment</e>
          <e type="operand">7</e>
          <e type="operand">1</e>
          <e type="function" args="9">line</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="621" top="198" width="396" height="278" color="#000000">
      <writer lang="eng"><![CDATA[<span style="font-family: 'Arial'; font-size: 10pt; font-weight: normal; font-style: normal; color: windowtext; background-color: Transparent; vertical-align: baseline; text-align: left; margin-left: 0pt; text-indent: 0pt; line-height: 115%">
<div>numbins: total number of bins. rounded, because it is an index</div>
<div>&nbsp;</div>
<div>numbin: this vector contains the number of the bin where </div>
<div>the corresponding element of vx belongs to. see right --&gt;</div>
<div>&nbsp;</div>
<div>Initializing h (Not sure if needed)</div>
<div>&nbsp;</div>
<div>norm: normalizes the histogram area in an graph to 1. </div>
<div>         The histogram values are &quot;counts&quot;, if you set norm to 1 </div>
<div>         you get the counts</div>
<div>for...    filling the result, excluding values below min and over max</div>
<div>&nbsp;</div>
<div>x: vector with the middle of each bin</div>
<div>&nbsp;</div>
<div>empty bins are also included in the result (see right).</div></span>]]></writer>
    </region>
    <region left="1116" top="234" width="115" height="36" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">v</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="operand">8</e>
          <e type="operand">8</e>
          <e type="operand">1</e>
          <e type="operand">4</e>
          <e type="function" args="6">mat</e>
          <e type="function" args="1">transpose</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="1242" top="243" width="238" height="190" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">1</e>
          <e type="operand">0.5</e>
          <e type="operand">10</e>
          <e type="operand">v</e>
          <e type="function" args="4">hist</e>
        </input>
        <result action="numeric">
          <e type="operand">1</e>
          <e type="operand">0.25</e>
          <e type="operand">2</e>
          <e type="operand">0.25</e>
          <e type="operand">3</e>
          <e type="operand">0</e>
          <e type="operand">4</e>
          <e type="operand">0</e>
          <e type="operand">5</e>
          <e type="operand">0</e>
          <e type="operand">6</e>
          <e type="operand">0</e>
          <e type="operand">7</e>
          <e type="operand">0</e>
          <e type="operand">8</e>
          <e type="operand">0.5</e>
          <e type="operand">9</e>
          <e type="operand">0</e>
          <e type="operand">10</e>
          <e type="operand">0</e>
          <e type="operand">10</e>
          <e type="operand">2</e>
          <e type="function" args="22">mat</e>
        </result>
      </math>
    </region>
    <region left="1071" top="288" width="78" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">min</e>
          <e type="operand">0.5</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="1143" top="288" width="70" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">size</e>
          <e type="operand">1</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="1062" top="315" width="154" height="35" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">numbin</e>
          <e type="function" args="1">transpose</e>
        </input>
        <result action="numeric">
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="operand">8</e>
          <e type="operand">8</e>
          <e type="operand">1</e>
          <e type="operand">4</e>
          <e type="function" args="6">mat</e>
        </result>
      </math>
    </region>
    <region left="1053" top="414" width="62" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">min</e>
          <e type="operand">1</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="1134" top="414" width="70" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">size</e>
          <e type="operand">5</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="1053" top="441" width="154" height="35" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">numbin</e>
          <e type="function" args="1">transpose</e>
        </input>
        <result action="numeric">
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="operand">4</e>
          <e type="function" args="6">mat</e>
        </result>
      </math>
    </region>
    <region left="1260" top="450" width="222" height="45" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">5</e>
          <e type="operand">1</e>
          <e type="operand">10</e>
          <e type="operand">v</e>
          <e type="function" args="4">hist</e>
        </input>
        <result action="numeric">
          <e type="operand">3.5</e>
          <e type="operand">0.1</e>
          <e type="operand">8.5</e>
          <e type="operand">0.1</e>
          <e type="operand">2</e>
          <e type="operand">2</e>
          <e type="function" args="6">mat</e>
        </result>
      </math>
    </region>
    <region left="225" top="486" width="50" height="41" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">σ</e>
          <e type="operand">1</e>
          <e type="operand">3</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="36" top="495" width="70" height="23" color="#000000" fontSize="10">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p>Example </p>
        </content>
      </text>
    </region>
    <region left="153" top="495" width="54" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">μ</e>
          <e type="operand">10</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="288" top="495" width="86" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">N</e>
          <e type="operand">100000</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="126" top="540" width="172" height="30" color="#000000" fontSize="10">
      <math optimize="2" decimalPlaces="3" exponentialThreshold="15" trailingZeros="true">
        <input>
          <e type="operand">G</e>
          <e type="operand">x</e>
          <e type="operand">μ</e>
          <e type="operand">σ</e>
          <e type="function" args="3">pdf.Normal</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="117" top="585" width="149" height="26" color="#000000" fontSize="10">
      <math optimize="2" decimalPlaces="3" exponentialThreshold="15" trailingZeros="true">
        <input>
          <e type="operand">v</e>
          <e type="operand">N</e>
          <e type="operand">μ</e>
          <e type="operand">σ</e>
          <e type="function" args="3">rnorm</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="297" top="585" width="181" height="26" color="#000000" fontSize="10">
      <math optimize="2" decimalPlaces="3" exponentialThreshold="15" trailingZeros="true">
        <input>
          <e type="operand">H</e>
          <e type="operand">0.1</e>
          <e type="operand">8</e>
          <e type="operand">12</e>
          <e type="operand">v</e>
          <e type="function" args="4">hist</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="45" top="612" width="532" height="435" color="#000000" fontSize="10">
      <xyplot optimize="2" width="522" height="427" points="400" name="XYPlot">
        <chartstyle backcolor="White" bordercolor="Black" />
        <propertiessource index="1" sourcetype="PropertyGrid" />
        <grid gridcolor="LightGray" gridpattern="Dash" gridthickness="1" isxgrid="true" isygrid="true" isy2grid="false" />
        <xaxes xmin="8" xmax="12" xtick="2.5" visible="True" decimalplaces="3" numberformat="General" />
        <yaxes ymin="0" ymax="1.3" ytick="0.5" visible="True" decimalplaces="3" numberformat="General" />
        <y2axes isy2axis="false" y2min="-1" y2max="1" y2tick="0.5" visible="True" decimalplaces="3" numberformat="General" />
        <title2d title="" titlefont="Arial, 10pt" titlefontcolor="Black" />
        <xylabel labelfont="Arial, 10pt" labelfontcolor="Black" tickfont="Arial, 8pt" tickfontcolor="Black" xlabel="x" ylabel="y" y2label="y2" />
        <legend isbordervisible="true" islegendvisible="false" legendbackcolor="White" legendbordercolor="Black" legendfont="Arial, 8pt" legendposition="NorthEast" textcolor="Black" />
        <traces>
          <trace seriesname="" isy2data="false" isvisible="true" plotmethod="Lines" lineantialias="true" linecolor="Blue" linethickness="1" linepattern="Solid" symbolantialias="true" symbolsize="8" symboltype="None" symbolborderthickness="1" symbolbordercolor="Black" symbolfillcolor="White" />
          <trace seriesname="" isy2data="false" isvisible="true" plotmethod="Labels" lineantialias="true" linecolor="Transparent" linethickness="1" linepattern="Solid" symbolantialias="true" symbolsize="4" symboltype="Dot" symbolborderthickness="1" symbolbordercolor="Black" symbolfillcolor="White" />
          <trace seriesname="" isy2data="false" isvisible="true" plotmethod="Lines" lineantialias="true" linecolor="Green" linethickness="1" linepattern="Solid" symbolantialias="true" symbolsize="8" symboltype="None" symbolborderthickness="1" symbolbordercolor="Black" symbolfillcolor="White" />
        </traces>
        <input>
          <e type="operand">G</e>
          <e type="operand">H</e>
          <e type="operand" style="string">.</e>
          <e type="operand">3</e>
          <e type="operand" style="string">blue</e>
          <e type="function" args="4">augment</e>
          <e type="operand">S</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">sys</e>
        </input>
      </xyplot>
    </region>
  </regions>
</worksheet>