Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property LoadBalancer::$mWriteIndex is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/db/LoadBalancer.php on line 83
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Return type of ResultWrapper::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/db/DatabaseUtility.php on line 174
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Return type of ResultWrapper::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/db/DatabaseUtility.php on line 192
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Return type of ResultWrapper::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/db/DatabaseUtility.php on line 185
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Return type of ResultWrapper::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/db/DatabaseUtility.php on line 202
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Return type of ResultWrapper::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/db/DatabaseUtility.php on line 163
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property WikitextContentHandler::$mModelName is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/content/ContentHandler.php on line 416
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property RequestContext::$recursion is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/context/RequestContext.php on line 332
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property MessageCache::$mMemc is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/cache/MessageCache.php on line 136
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property LoadBalancer::$mWriteIndex is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/db/LoadBalancer.php on line 83
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Parser::$mPreprocessorClass is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/parser/Parser.php on line 255
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property PPDStack::$accum is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/parser/Preprocessor_DOM.php on line 778
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php:344) in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Feed.php on line 234
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: header(): Passing null to parameter #3 ($response_code) of type int is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/WebResponse.php on line 37
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php:344) in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/WebResponse.php on line 37
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: header(): Passing null to parameter #3 ($response_code) of type int is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/WebResponse.php on line 37
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php:344) in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/WebResponse.php on line 37
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: header(): Passing null to parameter #3 ($response_code) of type int is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/WebResponse.php on line 37
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php:344) in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/WebResponse.php on line 37
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: header(): Passing null to parameter #3 ($response_code) of type int is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/WebResponse.php on line 37
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php:344) in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/WebResponse.php on line 37 https://rave.gatech.edu/help/index.php?action=history&feed=atom&title=Coding_distributions_for_use_in_RaveCoding distributions for use in Rave - Revision history2025-12-14T14:30:39ZRevision history for this page on the wikiMediaWiki 1.25.5 Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property WikitextContent::$mText is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/content/TextContent.php on line 56
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property WikitextContent::$mText is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/content/TextContent.php on line 56
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property BufferingStatsdDataFactory::$prefix is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/libs/BufferingStatsdDataFactory.php on line 38 https://rave.gatech.edu/help/index.php?title=Coding_distributions_for_use_in_Rave&diff=3530&oldid=prevMatt at 19:06, 14 October 20142014-10-14T19:06:21Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 19:06, 14 October 2014</td>
</tr><tr><td colspan="2" class="diff-lineno" id="L6" >Line 6:</td>
<td colspan="2" class="diff-lineno">Line 6:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>*'''distributioninfo.txt''' - A two-line text file. The first line contains a (short) name for this distribution. The second line contains a slightly longer description of the distribution.  </div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>*'''distributioninfo.txt''' - A two-line text file. The first line contains a (short) name for this distribution. The second line contains a slightly longer description of the distribution.  </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>*'''distributionsettingsKEYWORD.m''' - a SCRIPT that creates a scalar structure named "settings" whose fields are the settings/parameters that define this distribution. Rave will display both the field names and values to the user, so make the fieldnames meaningful.  </div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>*'''distributionsettingsKEYWORD.m''' - a SCRIPT that creates a scalar structure named "settings" whose fields are the settings/parameters that define this distribution. Rave will display both the field names and values to the user, so make the fieldnames meaningful. <ins class="diffchange diffchange-inline">Some fieldnames are reserved for use by Rave and must not appear in this script. These are: "type", "name", "serialnumber"</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>*'''distributionupdatesettingsKEYWORD.m''' - a function that takes in a settings structure provided by the user and returns a new settings structure that is guaranteed to be valid, or returns an empty array to indicate a total failure (in which case Rave will revert to the last valid settings structure it had). For now there is no standard way to handle errors in this function, so you can report them to the user as warnings or with dialog boxes (for things that the user REALLY needs to know). Try to avoid making this function cause actual errors that will stop matlab execution.  </div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>*'''distributionupdatesettingsKEYWORD.m''' - a function that takes in a settings structure provided by the user and returns a new settings structure that is guaranteed to be valid, or returns an empty array to indicate a total failure (in which case Rave will revert to the last valid settings structure it had). For now there is no standard way to handle errors in this function, so you can report them to the user as warnings or with dialog boxes (for things that the user REALLY needs to know). Try to avoid making this function cause actual errors that will stop matlab execution<ins class="diffchange diffchange-inline">. '''Note:''' Rave adds some additional fields to the settings structure, so this function should only modify the input settings structure, not create a new one from scratch. This ensures that any fields added by Rave are unchanged by this function</ins>.  </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>**Example 1, for a normal distribution the value settings.sigma must be non-negative. So if the input settings structure has settings.sigma = -1, this function prints a warning to the command window and returns an empty array... this causes rave to revert to the last valid settings structure that existed for this variable.  </div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>**Example 1, for a normal distribution the value settings.sigma must be non-negative. So if the input settings structure has settings.sigma = -1, this function prints a warning to the command window and returns an empty array... this causes rave to revert to the last valid settings structure that existed for this variable.  </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>**Example 2, for a triangular distribution, the values settings.a, .b, .c must be monotonically increasing. If the user inputs these out of order, this function simply reorders them so that they are monotonically increasing. This function then returns the new settings array, which Rave uses. It also prints a warning to the command window.  </div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>**Example 2, for a triangular distribution, the values settings.a, .b, .c must be monotonically increasing. If the user inputs these out of order, this function simply reorders them so that they are monotonically increasing. This function then returns the new settings array, which Rave uses. It also prints a warning to the command window.  </div></td></tr>
</table>Matt Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property WikitextContent::$mText is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/content/TextContent.php on line 56
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property WikitextContent::$mText is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/content/TextContent.php on line 56
Fatal error: Uncaught TypeError: MWExceptionHandler::handleException(): Argument #1 ($e) must be of type Exception, Error given in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php:153
Stack trace:
#0 [internal function]: MWExceptionHandler::handleException()
#1 {main}
thrown in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 153
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344