[23] | 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"> |
---|
| 3 | <title>mixpp: diffbifn Class Reference</title> |
---|
| 4 | <link href="doxygen.css" rel="stylesheet" type="text/css"> |
---|
| 5 | <link href="tabs.css" rel="stylesheet" type="text/css"> |
---|
| 6 | </head><body> |
---|
[91] | 7 | <!-- Generated by Doxygen 1.5.5 --> |
---|
| 8 | <div class="navigation" id="top"> |
---|
| 9 | <div class="tabs"> |
---|
| 10 | <ul> |
---|
| 11 | <li><a href="index.html"><span>Main Page</span></a></li> |
---|
| 12 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
| 13 | <li class="current"><a href="annotated.html"><span>Classes</span></a></li> |
---|
| 14 | <li><a href="files.html"><span>Files</span></a></li> |
---|
| 15 | </ul> |
---|
| 16 | </div> |
---|
| 17 | <div class="tabs"> |
---|
| 18 | <ul> |
---|
| 19 | <li><a href="annotated.html"><span>Class List</span></a></li> |
---|
| 20 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
| 21 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
| 22 | </ul> |
---|
| 23 | </div> |
---|
[23] | 24 | </div> |
---|
[91] | 25 | <div class="contents"> |
---|
| 26 | <h1>diffbifn Class Reference</h1><!-- doxytag: class="diffbifn" --><!-- doxytag: inherits="fnc" -->Class representing a differentiable function of two variables <img class="formulaInl" alt="$f(x,u)$" src="form_47.png">. |
---|
[23] | 27 | <a href="#_details">More...</a> |
---|
| 28 | <p> |
---|
| 29 | <code>#include <<a class="el" href="libFN_8h-source.html">libFN.h</a>></code> |
---|
| 30 | <p> |
---|
| 31 | <div class="dynheader"> |
---|
| 32 | Inheritance diagram for diffbifn:</div> |
---|
| 33 | <div class="dynsection"> |
---|
| 34 | <p><center><img src="classdiffbifn__inherit__graph.png" border="0" usemap="#diffbifn__inherit__map" alt="Inheritance graph"></center> |
---|
| 35 | <map name="diffbifn__inherit__map"> |
---|
[91] | 36 | <area shape="rect" href="classbilinfn.html" title="Class representing function ." alt="" coords="5,156,61,180"><area shape="rect" href="classIMpmsm.html" title="State evolution model for a PMSM drive and its derivative with respect to $x$." alt="" coords="85,156,157,180"><area shape="rect" href="classOMpmsm.html" title="Observation model for PMSM drive and its derivative with respect to $x$." alt="" coords="181,156,259,180"><area shape="rect" href="classfnc.html" title="Class representing function of variable represented by rv." alt="" coords="101,6,141,30"></map> |
---|
[23] | 37 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
| 38 | <div class="dynheader"> |
---|
| 39 | Collaboration diagram for diffbifn:</div> |
---|
| 40 | <div class="dynsection"> |
---|
| 41 | <p><center><img src="classdiffbifn__coll__graph.png" border="0" usemap="#diffbifn__coll__map" alt="Collaboration graph"></center> |
---|
| 42 | <map name="diffbifn__coll__map"> |
---|
[91] | 43 | <area shape="rect" href="classfnc.html" title="Class representing function of variable represented by rv." alt="" coords="5,6,45,30"><area shape="rect" href="classRV.html" title="Class representing variables, most often random variables." alt="" coords="69,6,107,30"></map> |
---|
[23] | 44 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
| 45 | |
---|
| 46 | <p> |
---|
| 47 | <a href="classdiffbifn-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
| 48 | <tr><td></td></tr> |
---|
| 49 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
---|
| 50 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ad7673e16aa1a046b131b24c731c4632"></a><!-- doxytag: member="diffbifn::eval" ref="ad7673e16aa1a046b131b24c731c4632" args="(const vec &cond)" --> |
---|
| 51 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classdiffbifn.html#ad7673e16aa1a046b131b24c731c4632">eval</a> (const vec &cond)</td></tr> |
---|
| 52 | |
---|
[91] | 53 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Evaluates <img class="formulaInl" alt="$f(x0,u0)$" src="form_49.png"> (VS: Do we really need common eval? ). <br></td></tr> |
---|
[23] | 54 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="40d8a7eee45acc55cda33d43282faa03"></a><!-- doxytag: member="diffbifn::eval" ref="40d8a7eee45acc55cda33d43282faa03" args="(const vec &x0, const vec &u0)" --> |
---|
| 55 | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classdiffbifn.html#40d8a7eee45acc55cda33d43282faa03">eval</a> (const vec &x0, const vec &u0)</td></tr> |
---|
| 56 | |
---|
[91] | 57 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Evaluates <img class="formulaInl" alt="$f(x0,u0)$" src="form_49.png">. <br></td></tr> |
---|
[23] | 58 | <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classdiffbifn.html#6d217a02d4fa13931258d4bebdd0feb4">dfdx_cond</a> (const vec &x0, const vec &u0, mat &A, bool full=true)</td></tr> |
---|
| 59 | |
---|
| 60 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Evaluates <img class="formulaInl" alt="$A=\frac{d}{dx}f(x,u)|_{x0,u0}$" src="form_1.png"> and writes result into <code>A</code> . <a href="#6d217a02d4fa13931258d4bebdd0feb4"></a><br></td></tr> |
---|
| 61 | <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classdiffbifn.html#1978bafd7909d15c139a08c495c24aa0">dfdu_cond</a> (const vec &x0, const vec &u0, mat &A, bool full=true)</td></tr> |
---|
| 62 | |
---|
| 63 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Evaluates <img class="formulaInl" alt="$A=\frac{d}{du}f(x,u)|_{x0,u0}$" src="form_2.png"> and writes result into <code>A</code> . <a href="#1978bafd7909d15c139a08c495c24aa0"></a><br></td></tr> |
---|
[79] | 64 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="797772c0d5aab8ddccec19dfe4bb2d77"></a><!-- doxytag: member="diffbifn::diffbifn" ref="797772c0d5aab8ddccec19dfe4bb2d77" args="(int dimy, const RV rvx0, const RV rvu0)" --> |
---|
| 65 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classdiffbifn.html#797772c0d5aab8ddccec19dfe4bb2d77">diffbifn</a> (int <a class="el" href="classfnc.html#22d51d10a7901331167f64f80d1af8e9">dimy</a>, const <a class="el" href="classRV.html">RV</a> rvx0, const <a class="el" href="classRV.html">RV</a> rvu0)</td></tr> |
---|
[23] | 66 | |
---|
| 67 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor (dimy is not set!). <br></td></tr> |
---|
| 68 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="436de7a7301ea9eac7d6081b893bbf57"></a><!-- doxytag: member="diffbifn::_dimx" ref="436de7a7301ea9eac7d6081b893bbf57" args="() const " --> |
---|
| 69 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classdiffbifn.html#436de7a7301ea9eac7d6081b893bbf57">_dimx</a> () const </td></tr> |
---|
| 70 | |
---|
| 71 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
| 72 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fc8779acbff170611aff0ee70cee3879"></a><!-- doxytag: member="diffbifn::_dimu" ref="fc8779acbff170611aff0ee70cee3879" args="() const " --> |
---|
| 73 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classdiffbifn.html#fc8779acbff170611aff0ee70cee3879">_dimu</a> () const </td></tr> |
---|
| 74 | |
---|
| 75 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
[28] | 76 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a8891973d0ca48ce38e1886df45ca298"></a><!-- doxytag: member="diffbifn::_dimy" ref="a8891973d0ca48ce38e1886df45ca298" args="() const " --> |
---|
| 77 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classfnc.html#a8891973d0ca48ce38e1886df45ca298">_dimy</a> () const </td></tr> |
---|
| 78 | |
---|
| 79 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
[23] | 80 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
| 81 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bcf96b86250c3cbd465ba5ee62474b75"></a><!-- doxytag: member="diffbifn::rvx" ref="bcf96b86250c3cbd465ba5ee62474b75" args="" --> |
---|
[33] | 82 | <a class="el" href="classRV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classdiffbifn.html#bcf96b86250c3cbd465ba5ee62474b75">rvx</a></td></tr> |
---|
[23] | 83 | |
---|
[33] | 84 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Indentifier of the first rv. <br></td></tr> |
---|
[23] | 85 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c41c74c7942dba51ef0b0bfed963447d"></a><!-- doxytag: member="diffbifn::rvu" ref="c41c74c7942dba51ef0b0bfed963447d" args="" --> |
---|
[33] | 86 | <a class="el" href="classRV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classdiffbifn.html#c41c74c7942dba51ef0b0bfed963447d">rvu</a></td></tr> |
---|
[23] | 87 | |
---|
[33] | 88 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Indentifier of the second rv. <br></td></tr> |
---|
[23] | 89 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f6918bc0a9dad656b4cddc028137eb78"></a><!-- doxytag: member="diffbifn::dimx" ref="f6918bc0a9dad656b4cddc028137eb78" args="" --> |
---|
[33] | 90 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classdiffbifn.html#f6918bc0a9dad656b4cddc028137eb78">dimx</a></td></tr> |
---|
[23] | 91 | |
---|
[33] | 92 | <tr><td class="mdescLeft"> </td><td class="mdescRight">cache for rvx.count() <br></td></tr> |
---|
[23] | 93 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2e07ce491e973f03d763e37624d0fe79"></a><!-- doxytag: member="diffbifn::dimu" ref="2e07ce491e973f03d763e37624d0fe79" args="" --> |
---|
[33] | 94 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classdiffbifn.html#2e07ce491e973f03d763e37624d0fe79">dimu</a></td></tr> |
---|
[23] | 95 | |
---|
[33] | 96 | <tr><td class="mdescLeft"> </td><td class="mdescRight">cache for rvu.count() <br></td></tr> |
---|
[28] | 97 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="22d51d10a7901331167f64f80d1af8e9"></a><!-- doxytag: member="diffbifn::dimy" ref="22d51d10a7901331167f64f80d1af8e9" args="" --> |
---|
[33] | 98 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classfnc.html#22d51d10a7901331167f64f80d1af8e9">dimy</a></td></tr> |
---|
[23] | 99 | |
---|
[33] | 100 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Length of the output vector. <br></td></tr> |
---|
[23] | 101 | </table> |
---|
| 102 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
[91] | 103 | Class representing a differentiable function of two variables <img class="formulaInl" alt="$f(x,u)$" src="form_47.png">. |
---|
[23] | 104 | <p> |
---|
| 105 | Function of two variables.<p> |
---|
[91] | 106 | TODO: 1) Technically, it could have a common parent (e.g. <code><a class="el" href="classfnc.html" title="Class representing function of variable represented by rv.">fnc</a></code> ) with other functions. For now, we keep it as it is. 2) It could be generalized into multivariate form, (which was original meaning of <code><a class="el" href="classfnc.html" title="Class representing function of variable represented by rv.">fnc</a></code> ). <hr><h2>Member Function Documentation</h2> |
---|
[23] | 107 | <a class="anchor" name="6d217a02d4fa13931258d4bebdd0feb4"></a><!-- doxytag: member="diffbifn::dfdx_cond" ref="6d217a02d4fa13931258d4bebdd0feb4" args="(const vec &x0, const vec &u0, mat &A, bool full=true)" --> |
---|
| 108 | <div class="memitem"> |
---|
| 109 | <div class="memproto"> |
---|
| 110 | <table class="memname"> |
---|
| 111 | <tr> |
---|
| 112 | <td class="memname">virtual void diffbifn::dfdx_cond </td> |
---|
| 113 | <td>(</td> |
---|
| 114 | <td class="paramtype">const vec & </td> |
---|
| 115 | <td class="paramname"> <em>x0</em>, </td> |
---|
| 116 | </tr> |
---|
| 117 | <tr> |
---|
| 118 | <td class="paramkey"></td> |
---|
| 119 | <td></td> |
---|
| 120 | <td class="paramtype">const vec & </td> |
---|
| 121 | <td class="paramname"> <em>u0</em>, </td> |
---|
| 122 | </tr> |
---|
| 123 | <tr> |
---|
| 124 | <td class="paramkey"></td> |
---|
| 125 | <td></td> |
---|
| 126 | <td class="paramtype">mat & </td> |
---|
| 127 | <td class="paramname"> <em>A</em>, </td> |
---|
| 128 | </tr> |
---|
| 129 | <tr> |
---|
| 130 | <td class="paramkey"></td> |
---|
| 131 | <td></td> |
---|
| 132 | <td class="paramtype">bool </td> |
---|
| 133 | <td class="paramname"> <em>full</em> = <code>true</code></td><td> </td> |
---|
| 134 | </tr> |
---|
| 135 | <tr> |
---|
| 136 | <td></td> |
---|
| 137 | <td>)</td> |
---|
| 138 | <td></td><td></td><td width="100%"><code> [inline, virtual]</code></td> |
---|
| 139 | </tr> |
---|
| 140 | </table> |
---|
| 141 | </div> |
---|
| 142 | <div class="memdoc"> |
---|
| 143 | |
---|
| 144 | <p> |
---|
| 145 | Evaluates <img class="formulaInl" alt="$A=\frac{d}{dx}f(x,u)|_{x0,u0}$" src="form_1.png"> and writes result into <code>A</code> . |
---|
| 146 | <p> |
---|
| 147 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 148 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 149 | <tr><td valign="top"></td><td valign="top"><em>full</em> </td><td>denotes that even unchanged entries are to be rewritten. When, false only the changed elements are computed. </td></tr> |
---|
[91] | 150 | <tr><td valign="top"></td><td valign="top"><em>x0</em> </td><td>numeric value of <img class="formulaInl" alt="$x$" src="form_28.png">, </td></tr> |
---|
| 151 | <tr><td valign="top"></td><td valign="top"><em>u0</em> </td><td>numeric value of <img class="formulaInl" alt="$u$" src="form_50.png"> </td></tr> |
---|
[33] | 152 | <tr><td valign="top"></td><td valign="top"><em>A</em> </td><td>a place where the result will be stored. </td></tr> |
---|
[23] | 153 | </table> |
---|
| 154 | </dl> |
---|
| 155 | |
---|
[33] | 156 | <p>Reimplemented in <a class="el" href="classbilinfn.html#79c022de8dbe2b054bb9cc49345f3ef5">bilinfn</a>, <a class="el" href="classIMpmsm.html#b4378b5d3bf64c683e4cf5c5f1cd56f1">IMpmsm</a>, and <a class="el" href="classOMpmsm.html#b75b5fd55b2ac5ed74b5b953af122821">OMpmsm</a>.</p> |
---|
[23] | 157 | |
---|
[91] | 158 | <p>Referenced by <a class="el" href="libKF_8h-source.html#l00364">EKF< sq_T >::bayes()</a>, <a class="el" href="libKF_8cpp-source.html#l00189">EKFCh::bayes()</a>, <a class="el" href="libKF_8cpp-source.html#l00086">EKFfull::bayes()</a>, <a class="el" href="libKF_8h-source.html#l00347">EKF< sq_T >::set_parameters()</a>, <a class="el" href="libKF_8cpp-source.html#l00167">EKFCh::set_parameters()</a>, and <a class="el" href="libKF_8cpp-source.html#l00066">EKFfull::set_parameters()</a>.</p> |
---|
| 159 | |
---|
[23] | 160 | </div> |
---|
| 161 | </div><p> |
---|
| 162 | <a class="anchor" name="1978bafd7909d15c139a08c495c24aa0"></a><!-- doxytag: member="diffbifn::dfdu_cond" ref="1978bafd7909d15c139a08c495c24aa0" args="(const vec &x0, const vec &u0, mat &A, bool full=true)" --> |
---|
| 163 | <div class="memitem"> |
---|
| 164 | <div class="memproto"> |
---|
| 165 | <table class="memname"> |
---|
| 166 | <tr> |
---|
| 167 | <td class="memname">virtual void diffbifn::dfdu_cond </td> |
---|
| 168 | <td>(</td> |
---|
| 169 | <td class="paramtype">const vec & </td> |
---|
| 170 | <td class="paramname"> <em>x0</em>, </td> |
---|
| 171 | </tr> |
---|
| 172 | <tr> |
---|
| 173 | <td class="paramkey"></td> |
---|
| 174 | <td></td> |
---|
| 175 | <td class="paramtype">const vec & </td> |
---|
| 176 | <td class="paramname"> <em>u0</em>, </td> |
---|
| 177 | </tr> |
---|
| 178 | <tr> |
---|
| 179 | <td class="paramkey"></td> |
---|
| 180 | <td></td> |
---|
| 181 | <td class="paramtype">mat & </td> |
---|
| 182 | <td class="paramname"> <em>A</em>, </td> |
---|
| 183 | </tr> |
---|
| 184 | <tr> |
---|
| 185 | <td class="paramkey"></td> |
---|
| 186 | <td></td> |
---|
| 187 | <td class="paramtype">bool </td> |
---|
| 188 | <td class="paramname"> <em>full</em> = <code>true</code></td><td> </td> |
---|
| 189 | </tr> |
---|
| 190 | <tr> |
---|
| 191 | <td></td> |
---|
| 192 | <td>)</td> |
---|
| 193 | <td></td><td></td><td width="100%"><code> [inline, virtual]</code></td> |
---|
| 194 | </tr> |
---|
| 195 | </table> |
---|
| 196 | </div> |
---|
| 197 | <div class="memdoc"> |
---|
| 198 | |
---|
| 199 | <p> |
---|
| 200 | Evaluates <img class="formulaInl" alt="$A=\frac{d}{du}f(x,u)|_{x0,u0}$" src="form_2.png"> and writes result into <code>A</code> . |
---|
| 201 | <p> |
---|
| 202 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 203 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 204 | <tr><td valign="top"></td><td valign="top"><em>full</em> </td><td>denotes that even unchanged entries are to be rewritten. When, false only the changed elements are computed. </td></tr> |
---|
[91] | 205 | <tr><td valign="top"></td><td valign="top"><em>x0</em> </td><td>numeric value of <img class="formulaInl" alt="$x$" src="form_28.png">, </td></tr> |
---|
| 206 | <tr><td valign="top"></td><td valign="top"><em>u0</em> </td><td>numeric value of <img class="formulaInl" alt="$u$" src="form_50.png"> </td></tr> |
---|
[33] | 207 | <tr><td valign="top"></td><td valign="top"><em>A</em> </td><td>a place where the result will be stored. </td></tr> |
---|
[23] | 208 | </table> |
---|
| 209 | </dl> |
---|
| 210 | |
---|
[33] | 211 | <p>Reimplemented in <a class="el" href="classbilinfn.html#90f2b15612b14883d6ed2b0e295cb82b">bilinfn</a>, and <a class="el" href="classIMpmsm.html#c3f8dad22ae9855c04a1d593b45c99b5">IMpmsm</a>.</p> |
---|
[23] | 212 | |
---|
| 213 | </div> |
---|
| 214 | </div><p> |
---|
| 215 | <hr>The documentation for this class was generated from the following file:<ul> |
---|
| 216 | <li>work/mixpp/bdm/stat/<a class="el" href="libFN_8h-source.html">libFN.h</a></ul> |
---|
[91] | 217 | </div> |
---|
| 218 | <hr size="1"><address style="text-align: right;"><small>Generated on Tue Apr 29 20:46:39 2008 for mixpp by |
---|
[23] | 219 | <a href="http://www.doxygen.org/index.html"> |
---|
[91] | 220 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address> |
---|
[23] | 221 | </body> |
---|
| 222 | </html> |
---|