Show
Ignore:
Timestamp:
08/30/09 22:13:15 (15 years ago)
Author:
smidl
Message:

doc

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/doc/html/mex__datasource_8h_source.html

    r472 r591  
    1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
    2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> 
     1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
     2<html xmlns="http://www.w3.org/1999/xhtml"> 
     3<head> 
     4<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> 
    35<title>mixpp: mex_datasource.h Source File</title> 
    4 <link href="tabs.css" rel="stylesheet" type="text/css"> 
    5 <link href="doxygen.css" rel="stylesheet" type="text/css"> 
    6 </head><body> 
    7 <!-- Generated by Doxygen 1.5.9 --> 
     6<link href="tabs.css" rel="stylesheet" type="text/css"/> 
     7<link href="doxygen.css" rel="stylesheet" type="text/css"/> 
     8</head> 
     9<body> 
     10<!-- Generated by Doxygen 1.6.1 --> 
    811<script type="text/javascript"> 
    912<!-- 
     
    6265    </ul> 
    6366  </div> 
    64 <h1>mex_datasource.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#include "../bdm/stat/datasources.h"</span> 
    65 <a name="l00002"></a>00002 <span class="preprocessor">#include "mex_parser.h"</span> 
    66 <a name="l00003"></a>00003  
    67 <a name="l00004"></a>00004 <span class="keyword">namespace </span>bdm { 
    68 <a name="l00012"></a><a class="code" href="classbdm_1_1MexDS.html">00012</a> <span class="keyword">class </span><a class="code" href="classbdm_1_1MexDS.html" title="Memory storage of off-line data column-wise.">MexDS</a> : <span class="keyword">public</span> <a class="code" href="classbdm_1_1MemDS.html" title="Memory storage of off-line data column-wise.">MemDS</a> { 
    69 <a name="l00014"></a>00014         <a class="code" href="classbdm_1_1MexDS.html" title="Memory storage of off-line data column-wise.">MexDS</a> () {}; 
    70 <a name="l00015"></a>00015  
    71 <a name="l00033"></a>00033         <span class="keywordtype">void</span> from_setting( <span class="keyword">const</span> Setting &amp;<span class="keyword">set</span> ) 
    72 <a name="l00034"></a>00034         {        
    73 <a name="l00035"></a>00035                 <a class="code" href="classbdm_1_1MemDS.html#a724f4cbfc32e79bacc044253234e260" title="internal matrix of data">Data</a> = mxArray2mat(mexGetVariable(<span class="stringliteral">"base"</span>,<span class="keyword">set</span>[<span class="stringliteral">"varname"</span>])); 
    74 <a name="l00036"></a>00036                 <a class="code" href="classbdm_1_1UI.html#cd1667e6fec99ec64dabcb3ca2ff922d">UI::get</a>( <a class="code" href="classbdm_1_1MemDS.html#865814d49913dcf672bb20a4334d3dc4" title="vector of rows that are presented in Dt">rowid</a>, <span class="keyword">set</span>, <span class="stringliteral">"rids"</span> , UI::compulsory); 
    75 <a name="l00037"></a>00037                 it_assert_debug ( max ( <a class="code" href="classbdm_1_1MemDS.html#865814d49913dcf672bb20a4334d3dc4" title="vector of rows that are presented in Dt">rowid</a> ) &lt;=<a class="code" href="classbdm_1_1MemDS.html#a724f4cbfc32e79bacc044253234e260" title="internal matrix of data">Data</a>.rows(),<span class="stringliteral">"MemDS rowid is too high for given Dat."</span> ); 
     67<h1>mex_datasource.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#include &quot;../bdm/bdmerror.h&quot;</span> 
     68<a name="l00002"></a>00002 <span class="preprocessor">#include &quot;../bdm/stat/datasources.h&quot;</span> 
     69<a name="l00003"></a>00003 <span class="preprocessor">#include &quot;mex_parser.h&quot;</span> 
     70<a name="l00004"></a>00004  
     71<a name="l00005"></a>00005 <span class="keyword">namespace </span>bdm { 
     72<a name="l00013"></a><a class="code" href="classbdm_1_1MexDS.html">00013</a> <span class="keyword">class </span><a class="code" href="classbdm_1_1MexDS.html" title="Memory storage of off-line data column-wise.">MexDS</a> : <span class="keyword">public</span> <a class="code" href="classbdm_1_1MemDS.html" title="Memory storage of off-line data column-wise.">MemDS</a> { 
     73<a name="l00015"></a>00015         <a class="code" href="classbdm_1_1MexDS.html" title="Memory storage of off-line data column-wise.">MexDS</a> () {}; 
     74<a name="l00016"></a>00016  
     75<a name="l00034"></a>00034         <span class="keywordtype">void</span> from_setting ( <span class="keyword">const</span> Setting &amp;<span class="keyword">set</span> ) { 
     76<a name="l00035"></a>00035                 <a class="code" href="classbdm_1_1MemDS.html#aa724f4cbfc32e79bacc044253234e260" title="internal matrix of data">Data</a> = mxArray2mat ( mexGetVariable ( <span class="stringliteral">&quot;base&quot;</span>, <span class="keyword">set</span>[<span class="stringliteral">&quot;varname&quot;</span>] ) ); 
     77<a name="l00036"></a>00036                 <a class="code" href="classbdm_1_1UI.html#acd1667e6fec99ec64dabcb3ca2ff922d">UI::get</a> ( <a class="code" href="classbdm_1_1MemDS.html#a865814d49913dcf672bb20a4334d3dc4" title="vector of rows that are presented in Dt">rowid</a>, <span class="keyword">set</span>, <span class="stringliteral">&quot;rids&quot;</span> , UI::compulsory ); 
     78<a name="l00037"></a>00037                 <a class="code" href="bdmerror_8h.html#a89a0f906b242b79c5d3d342291b2cab4" title="Throw std::runtime_exception if t is not true and NDEBUG is not defined.">bdm_assert_debug</a> ( max ( <a class="code" href="classbdm_1_1MemDS.html#a865814d49913dcf672bb20a4334d3dc4" title="vector of rows that are presented in Dt">rowid</a> ) &lt;= <a class="code" href="classbdm_1_1MemDS.html#aa724f4cbfc32e79bacc044253234e260" title="internal matrix of data">Data</a>.rows(), <span class="stringliteral">&quot;MemDS rowid is too high for given Dat.&quot;</span> ); 
    7679<a name="l00038"></a>00038  
    77 <a name="l00039"></a>00039                 <a class="code" href="classbdm_1_1UI.html#cd1667e6fec99ec64dabcb3ca2ff922d">UI::get</a>( <a class="code" href="classbdm_1_1MemDS.html#166522aed4d3b12d9b3c2afaf6673301" title="vector of delays that are presented in Dt">delays</a>, <span class="keyword">set</span>, <span class="stringliteral">"tds"</span>, UI::compulsory ); 
    78 <a name="l00040"></a>00040                 <a class="code" href="classbdm_1_1MemDS.html#681ee3831f68f4f20ed54e04e8b3f107" title="active column in the Data matrix">time</a> = max ( <a class="code" href="classbdm_1_1MemDS.html#166522aed4d3b12d9b3c2afaf6673301" title="vector of delays that are presented in Dt">delays</a> ); 
    79 <a name="l00041"></a>00041                 it_assert_debug ( <a class="code" href="classbdm_1_1MemDS.html#681ee3831f68f4f20ed54e04e8b3f107" title="active column in the Data matrix">time</a> &lt; <a class="code" href="classbdm_1_1MemDS.html#a724f4cbfc32e79bacc044253234e260" title="internal matrix of data">Data</a>.cols(),<span class="stringliteral">"MemDS delays are too high."</span> ); 
     80<a name="l00039"></a>00039                 <a class="code" href="classbdm_1_1UI.html#acd1667e6fec99ec64dabcb3ca2ff922d">UI::get</a> ( <a class="code" href="classbdm_1_1MemDS.html#a166522aed4d3b12d9b3c2afaf6673301" title="vector of delays that are presented in Dt">delays</a>, <span class="keyword">set</span>, <span class="stringliteral">&quot;tds&quot;</span>, UI::compulsory ); 
     81<a name="l00040"></a>00040                 <a class="code" href="classbdm_1_1MemDS.html#a681ee3831f68f4f20ed54e04e8b3f107" title="active column in the Data matrix">time</a> = max ( <a class="code" href="classbdm_1_1MemDS.html#a166522aed4d3b12d9b3c2afaf6673301" title="vector of delays that are presented in Dt">delays</a> ); 
     82<a name="l00041"></a>00041                 <a class="code" href="bdmerror_8h.html#a89a0f906b242b79c5d3d342291b2cab4" title="Throw std::runtime_exception if t is not true and NDEBUG is not defined.">bdm_assert_debug</a> ( <a class="code" href="classbdm_1_1MemDS.html#a681ee3831f68f4f20ed54e04e8b3f107" title="active column in the Data matrix">time</a> &lt; <a class="code" href="classbdm_1_1MemDS.html#aa724f4cbfc32e79bacc044253234e260" title="internal matrix of data">Data</a>.cols(), <span class="stringliteral">&quot;MemDS delays are too high.&quot;</span> ); 
    8083<a name="l00042"></a>00042  
    81 <a name="l00043"></a>00043                 <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>* r = UI::build&lt;RV&gt;(<span class="keyword">set</span>,<span class="stringliteral">"rv"</span>, UI::compulsory); 
    82 <a name="l00044"></a>00044                 <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> ru=<a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>(); 
    83 <a name="l00045"></a>00045                 set_rvs(*r,ru); 
     84<a name="l00043"></a>00043                 <a class="code" href="classbdm_1_1shared__ptr.html" title="A naive implementation of roughly a subset of the std::tr1::shared_ptr spec.">shared_ptr&lt;RV&gt;</a> r = UI::build&lt;RV&gt; ( <span class="keyword">set</span>, <span class="stringliteral">&quot;rv&quot;</span>, UI::compulsory ); 
     85<a name="l00044"></a>00044                 <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> ru = <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>(); 
     86<a name="l00045"></a>00045                 set_rvs ( *r, ru ); 
    8487<a name="l00046"></a>00046         } 
    8588<a name="l00047"></a>00047  
     
    8891<a name="l00050"></a>00050 }; 
    8992<a name="l00051"></a>00051  
    90 <a name="l00052"></a>00052 <a class="code" href="user__info_8h.html#4f9de2f17e844047726487b99def99c6" title="Macro for registration of class into map of user-infos, registered class is scriptable...">UIREGISTER</a>(<a class="code" href="classbdm_1_1MexDS.html" title="Memory storage of off-line data column-wise.">MexDS</a>); 
    91 <a name="l00053"></a>00053  
    92 <a name="l00054"></a>00054 } 
     93<a name="l00052"></a>00052 <a class="code" href="user__info_8h.html#a4f9de2f17e844047726487b99def99c6" title="Macro for registration of class into map of user-infos, registered class is scriptable...">UIREGISTER</a> ( <a class="code" href="classbdm_1_1MexDS.html" title="Memory storage of off-line data column-wise.">MexDS</a> ); 
     94<a name="l00053"></a>00053 SHAREDPTR ( <a class="code" href="classbdm_1_1MexDS.html" title="Memory storage of off-line data column-wise.">MexDS</a> ); 
     95<a name="l00054"></a>00054  
     96<a name="l00055"></a>00055 } 
    9397</pre></div></div> 
    94 <hr size="1"><address style="text-align: right;"><small>Generated on Wed Aug 5 00:06:48 2009 for mixpp by&nbsp; 
     98<hr size="1"/><address style="text-align: right;"><small>Generated on Sun Aug 30 22:10:49 2009 for mixpp by&nbsp; 
    9599<a href="http://www.doxygen.org/index.html"> 
    96 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> 
     100<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address> 
    97101</body> 
    98102</html>