<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Variables</title><link>https://sourceforge.net/p/freemuse/wiki/Variables/</link><description>Recent changes to Variables</description><atom:link href="https://sourceforge.net/p/freemuse/wiki/Variables/feed" rel="self"/><language>en</language><lastBuildDate>Sat, 04 Jun 2011 08:06:36 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/freemuse/wiki/Variables/feed" rel="self" type="application/rss+xml"/><item><title>Variables
===
Variables can be defined in the [calculation section](Calculationsection) or the [process section](Process section). They are used as values for parameters in processes, instances and influences.

Constant valued variables
---
A common constant variable is defined in MUSE as in the example bellow.

~~~~
&lt;variable name="varname"&gt;5.0&lt;/variable&gt;
~~~~
You can even use other object names (processes, variables, influences) in the definition of variables.

~~~~
&lt;variable name="varname"&gt;temp + 5.0&lt;/variable&gt;
~~~~

Variables with distributions
---
But it is also possible to use distributions as variables as in the following example.

~~~~
&lt;variable name="varname"&gt;
  &lt;distribution&gt;
    &lt;gauss&gt;
      &lt;mu&gt;5.0&lt;/mu&gt;
      &lt;sigma&gt;.1&lt;/sigma&gt;
    &lt;/gauss&gt;
    &lt;/distribution&gt;
&lt;/variable&gt;
~~~~

Related topics
---
* In the [calculation section](Calculation section) you can also use variation loops to simulate different scenarios in one run.
* See the section about the [scope](Scope) to learn more about the namespace of variables, processes and instances.
* [Format of variable names](Identifiers)</title><link>https://sourceforge.net/p/freemuse/wiki/Variables/</link><description>Variables
===
Variables can be defined in the [calculation section](Calculationsection) or the [process section](Process section). They are used as values for parameters in processes, instances and influences.

Constant valued variables
---
A common constant variable is defined in MUSE as in the example bellow.

~~~~
&lt;variable name="varname"&gt;5.0&lt;/variable&gt;
~~~~
You can even use other object names (processes, variables, influences) in the definition of variables.

~~~~
&lt;variable name="varname"&gt;temp + 5.0&lt;/variable&gt;
~~~~

Variables with distributions
---
But it is also possible to use distributions as variables as in the following example.

~~~~
&lt;variable name="varname"&gt;
  &lt;distribution&gt;
    &lt;gauss&gt;
      &lt;mu&gt;5.0&lt;/mu&gt;
      &lt;sigma&gt;.1&lt;/sigma&gt;
    &lt;/gauss&gt;
    &lt;/distribution&gt;
&lt;/variable&gt;
~~~~

Related topics
---
* In the [calculation section](Calculation section) you can also use variation loops to simulate different scenarios in one run.
* See the section about the [scope](Scope) to learn more about the namespace of variables, processes and instances.
* [Format of variable names](Identifiers)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Marco Wolf</dc:creator><pubDate>Sat, 04 Jun 2011 08:06:36 -0000</pubDate><guid>https://sourceforge.net5679538ec3f26ae8943da1a8964e6d3d20096a42</guid></item></channel></rss>