<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Recursive definition of basicmodels</title><link>https://sourceforge.net/p/freemuse/wiki/Recursive%2520definition%2520of%2520basicmodels/</link><description>Recent changes to Recursive definition of basicmodels</description><atom:link href="https://sourceforge.net/p/freemuse/wiki/Recursive%20definition%20of%20basicmodels/feed" rel="self"/><language>en</language><lastBuildDate>Mon, 06 Jun 2011 19:11:51 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/freemuse/wiki/Recursive%20definition%20of%20basicmodels/feed" rel="self" type="application/rss+xml"/><item><title>&lt;pre&gt;--- v1 
+++ v2 
@@ -21,32 +21,34 @@
 ~~~~
 
 The basic model __gauss__ can for instance look as follows.
-~~~~
+
+~~~~
 &lt;?xml version="1.0" encoding="UTF-8"?&gt;
 
 &lt;!DOCTYPE model SYSTEM "../../../../xml/model.dtd"&gt;
 
 &lt;model name="gauss" targetid="og"&gt;
   &lt;influence id="og" name="gauss"&gt;
     &lt;formula&gt;myg&lt;/formula&gt;
     &lt;influences&gt;
       &lt;influence id="myg" name="mygauss"&gt;
         &lt;distribution&gt;
           &lt;gauss&gt;
             &lt;mu parameter="#mu"&gt;0&lt;/mu&gt;
             &lt;sigma parameter="#sigma"&gt;1&lt;/sigma&gt;
           &lt;/gauss&gt;
         &lt;/distribution&gt;
       &lt;/influence&gt;
     &lt;/influences&gt;
   &lt;/influence&gt;
 &lt;/model&gt;
 ~~~~
 
 Issues for recursive basic model definition
 ---
 
 For parametrization it is important to see that IDs may not be unique anymore. Therefore you have to provide additional information for the ID if you use basic models in basic models. In the example an initialization would for example look like this.
+
 ~~~~
   &lt;initialization&gt;
     &lt;!-- Normal distributions for first example --&gt;
&lt;/pre&gt;</title><link>https://sourceforge.net/p/freemuse/wiki/Recursive%2520definition%2520of%2520basicmodels/</link><description>&lt;pre&gt;--- v1 
+++ v2 
@@ -21,32 +21,34 @@
 ~~~~
 
 The basic model __gauss__ can for instance look as follows.
-~~~~
+
+~~~~
 &lt;?xml version="1.0" encoding="UTF-8"?&gt;
 
 &lt;!DOCTYPE model SYSTEM "../../../../xml/model.dtd"&gt;
 
 &lt;model name="gauss" targetid="og"&gt;
   &lt;influence id="og" name="gauss"&gt;
     &lt;formula&gt;myg&lt;/formula&gt;
     &lt;influences&gt;
       &lt;influence id="myg" name="mygauss"&gt;
         &lt;distribution&gt;
           &lt;gauss&gt;
             &lt;mu parameter="#mu"&gt;0&lt;/mu&gt;
             &lt;sigma parameter="#sigma"&gt;1&lt;/sigma&gt;
           &lt;/gauss&gt;
         &lt;/distribution&gt;
       &lt;/influence&gt;
     &lt;/influences&gt;
   &lt;/influence&gt;
 &lt;/model&gt;
 ~~~~
 
 Issues for recursive basic model definition
 ---
 
 For parametrization it is important to see that IDs may not be unique anymore. Therefore you have to provide additional information for the ID if you use basic models in basic models. In the example an initialization would for example look like this.
+
 ~~~~
   &lt;initialization&gt;
     &lt;!-- Normal distributions for first example --&gt;
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Marco Wolf</dc:creator><pubDate>Mon, 06 Jun 2011 19:11:51 -0000</pubDate><guid>https://sourceforge.netf5349e28c69c2cfa430c473e3e7cb6d98134adf0</guid></item><item><title>Recursive definition of basic models
===

You can use basic models as influences in basic models. In the following example we have a basic model named __opengauss__ that uses another basic model __gauss__ at location __distributions__ to define its influences __g1__ and __g2__.

~~~~
&lt;?xml version="1.0" encoding="UTF-8"?&gt;

&lt;!DOCTYPE model SYSTEM "../../../xml/model.dtd"&gt;

&lt;model name="doublegauss" targetid="ag"&gt;
  &lt;influence id="ag" name="doublegauss"&gt;
    &lt;formula&gt;g1 + g2&lt;/formula&gt;
    
    &lt;influences&gt;
      &lt;influence id="g1" name="1st Gauss" model="distributions\gauss"/&gt;
      &lt;influence id="g2" name="2nd Gauss" model="distributions\gauss"/&gt;
    &lt;/influences&gt;
  &lt;/influence&gt;
&lt;/model&gt;
~~~~

The basic model __gauss__ can for instance look as follows.
~~~~
&lt;?xml version="1.0" encoding="UTF-8"?&gt;

&lt;!DOCTYPE model SYSTEM "../../../../xml/model.dtd"&gt;

&lt;model name="gauss" targetid="og"&gt;
  &lt;influence id="og" name="gauss"&gt;
    &lt;formula&gt;myg&lt;/formula&gt;
    &lt;influences&gt;
      &lt;influence id="myg" name="mygauss"&gt;
        &lt;distribution&gt;
          &lt;gauss&gt;
            &lt;mu parameter="#mu"&gt;0&lt;/mu&gt;
            &lt;sigma parameter="#sigma"&gt;1&lt;/sigma&gt;
          &lt;/gauss&gt;
        &lt;/distribution&gt;
      &lt;/influence&gt;
    &lt;/influences&gt;
  &lt;/influence&gt;
&lt;/model&gt;
~~~~

Issues for recursive basic model definition
---

For parametrization it is important to see that IDs may not be unique anymore. Therefore you have to provide additional information for the ID if you use basic models in basic models. In the example an initialization would for example look like this.
~~~~
  &lt;initialization&gt;
    &lt;!-- Normal distributions for first example --&gt;
    &lt;instance name="g" model="doublegauss"&gt;
      &lt;parameters&gt;
        &lt;parameter id="g1.#mu"&gt;3&lt;/parameter&gt;
        &lt;parameter id="g1.#sigma"&gt;1&lt;/parameter&gt;
        &lt;parameter id="g2.#mu"&gt;5&lt;/parameter&gt;
        &lt;parameter id="g2.#sigma"&gt;2&lt;/parameter&gt;
      &lt;/parameters&gt;
    &lt;/instance&gt;
  &lt;/initialization&gt;
~~~~
Here we get an instance of basic model __doublegauss__. As it uses the basic model __gauss__ internally for subinfluences and we have to set the parameters of the distributions there using the id followed by a dot as prefix to the parameter name.

The same holds for fade out defintion.
</title><link>https://sourceforge.net/p/freemuse/wiki/Recursive%2520definition%2520of%2520basicmodels/</link><description>Recursive definition of basic models
===

You can use basic models as influences in basic models. In the following example we have a basic model named __opengauss__ that uses another basic model __gauss__ at location __distributions__ to define its influences __g1__ and __g2__.

~~~~
&lt;?xml version="1.0" encoding="UTF-8"?&gt;

&lt;!DOCTYPE model SYSTEM "../../../xml/model.dtd"&gt;

&lt;model name="doublegauss" targetid="ag"&gt;
  &lt;influence id="ag" name="doublegauss"&gt;
    &lt;formula&gt;g1 + g2&lt;/formula&gt;
    
    &lt;influences&gt;
      &lt;influence id="g1" name="1st Gauss" model="distributions\gauss"/&gt;
      &lt;influence id="g2" name="2nd Gauss" model="distributions\gauss"/&gt;
    &lt;/influences&gt;
  &lt;/influence&gt;
&lt;/model&gt;
~~~~

The basic model __gauss__ can for instance look as follows.
~~~~
&lt;?xml version="1.0" encoding="UTF-8"?&gt;

&lt;!DOCTYPE model SYSTEM "../../../../xml/model.dtd"&gt;

&lt;model name="gauss" targetid="og"&gt;
  &lt;influence id="og" name="gauss"&gt;
    &lt;formula&gt;myg&lt;/formula&gt;
    &lt;influences&gt;
      &lt;influence id="myg" name="mygauss"&gt;
        &lt;distribution&gt;
          &lt;gauss&gt;
            &lt;mu parameter="#mu"&gt;0&lt;/mu&gt;
            &lt;sigma parameter="#sigma"&gt;1&lt;/sigma&gt;
          &lt;/gauss&gt;
        &lt;/distribution&gt;
      &lt;/influence&gt;
    &lt;/influences&gt;
  &lt;/influence&gt;
&lt;/model&gt;
~~~~

Issues for recursive basic model definition
---

For parametrization it is important to see that IDs may not be unique anymore. Therefore you have to provide additional information for the ID if you use basic models in basic models. In the example an initialization would for example look like this.
~~~~
  &lt;initialization&gt;
    &lt;!-- Normal distributions for first example --&gt;
    &lt;instance name="g" model="doublegauss"&gt;
      &lt;parameters&gt;
        &lt;parameter id="g1.#mu"&gt;3&lt;/parameter&gt;
        &lt;parameter id="g1.#sigma"&gt;1&lt;/parameter&gt;
        &lt;parameter id="g2.#mu"&gt;5&lt;/parameter&gt;
        &lt;parameter id="g2.#sigma"&gt;2&lt;/parameter&gt;
      &lt;/parameters&gt;
    &lt;/instance&gt;
  &lt;/initialization&gt;
~~~~
Here we get an instance of basic model __doublegauss__. As it uses the basic model __gauss__ internally for subinfluences and we have to set the parameters of the distributions there using the id followed by a dot as prefix to the parameter name.

The same holds for fade out defintion.
</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Marco Wolf</dc:creator><pubDate>Mon, 06 Jun 2011 19:11:28 -0000</pubDate><guid>https://sourceforge.net34f8b10652731e64454e01a7605222d9e9de502f</guid></item></channel></rss>