[353] | 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: log_exp.h File Reference</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.8 --> |
---|
| 8 | <script type="text/javascript"> |
---|
| 9 | <!-- |
---|
| 10 | function changeDisplayState (e){ |
---|
| 11 | var num=this.id.replace(/[^[0-9]/g,''); |
---|
| 12 | var button=this.firstChild; |
---|
| 13 | var sectionDiv=document.getElementById('dynsection'+num); |
---|
| 14 | if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){ |
---|
| 15 | sectionDiv.style.display='block'; |
---|
| 16 | button.src='open.gif'; |
---|
| 17 | }else{ |
---|
| 18 | sectionDiv.style.display='none'; |
---|
| 19 | button.src='closed.gif'; |
---|
| 20 | } |
---|
| 21 | } |
---|
| 22 | function initDynSections(){ |
---|
| 23 | var divs=document.getElementsByTagName('div'); |
---|
| 24 | var sectionCounter=1; |
---|
| 25 | for(var i=0;i<divs.length-1;i++){ |
---|
| 26 | if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){ |
---|
| 27 | var header=divs[i]; |
---|
| 28 | var section=divs[i+1]; |
---|
| 29 | var button=header.firstChild; |
---|
| 30 | if (button!='IMG'){ |
---|
| 31 | divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild); |
---|
| 32 | button=document.createElement('img'); |
---|
| 33 | divs[i].insertBefore(button,divs[i].firstChild); |
---|
| 34 | } |
---|
| 35 | header.style.cursor='pointer'; |
---|
| 36 | header.onclick=changeDisplayState; |
---|
| 37 | header.id='dynheader'+sectionCounter; |
---|
| 38 | button.src='closed.gif'; |
---|
| 39 | section.id='dynsection'+sectionCounter; |
---|
| 40 | section.style.display='none'; |
---|
| 41 | section.style.marginLeft='14px'; |
---|
| 42 | sectionCounter++; |
---|
| 43 | } |
---|
| 44 | } |
---|
| 45 | } |
---|
| 46 | window.onload = initDynSections; |
---|
| 47 | --> |
---|
| 48 | </script> |
---|
| 49 | <div class="navigation" id="top"> |
---|
| 50 | <div class="tabs"> |
---|
| 51 | <ul> |
---|
| 52 | <li><a href="main.html"><span>Main Page</span></a></li> |
---|
| 53 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
| 54 | <li><a href="modules.html"><span>Modules</span></a></li> |
---|
| 55 | <li><a href="annotated.html"><span>Classes</span></a></li> |
---|
| 56 | <li class="current"><a href="files.html"><span>Files</span></a></li> |
---|
| 57 | </ul> |
---|
| 58 | </div> |
---|
| 59 | <div class="tabs"> |
---|
| 60 | <ul> |
---|
| 61 | <li><a href="files.html"><span>File List</span></a></li> |
---|
| 62 | <li><a href="globals.html"><span>File Members</span></a></li> |
---|
| 63 | </ul> |
---|
| 64 | </div> |
---|
| 65 | </div> |
---|
| 66 | <div class="contents"> |
---|
| 67 | <h1>log_exp.h File Reference</h1>Logarithmic and exponenential functions - header file. |
---|
| 68 | <a href="#_details">More...</a> |
---|
| 69 | <p> |
---|
| 70 | <code>#include <<a class="el" href="itcompat_8h-source.html">itpp/base/itcompat.h</a>></code><br> |
---|
| 71 | <code>#include <<a class="el" href="help__functions_8h-source.html">itpp/base/help_functions.h</a>></code><br> |
---|
| 72 | |
---|
| 73 | <p> |
---|
| 74 | <a href="log__exp_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
| 75 | <tr><td></td></tr> |
---|
| 76 | <tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
---|
| 77 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g5275297e979272e5102fa31f0fc782b4"></a><!-- doxytag: member="log_exp.h::logb" ref="g5275297e979272e5102fa31f0fc782b4" args="(double b, double x)" --> |
---|
| 78 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#g5275297e979272e5102fa31f0fc782b4">itpp::logb</a> (double b, double x)</td></tr> |
---|
| 79 | |
---|
| 80 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Base-b logarithm. <br></td></tr> |
---|
| 81 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g44da7c49dc0f990f661404a47e2bf9be"></a><!-- doxytag: member="log_exp.h::pow2i" ref="g44da7c49dc0f990f661404a47e2bf9be" args="(int x)" --> |
---|
| 82 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#g44da7c49dc0f990f661404a47e2bf9be">itpp::pow2i</a> (int x)</td></tr> |
---|
| 83 | |
---|
| 84 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Calculate two to the power of x (2^x); x is integer. <br></td></tr> |
---|
| 85 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g84ee8bfb44de3c26fdcb756ecb21d9e9"></a><!-- doxytag: member="log_exp.h::pow2" ref="g84ee8bfb44de3c26fdcb756ecb21d9e9" args="(double x)" --> |
---|
| 86 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#g84ee8bfb44de3c26fdcb756ecb21d9e9">itpp::pow2</a> (double x)</td></tr> |
---|
| 87 | |
---|
| 88 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Calculate two to the power of x (2^x). <br></td></tr> |
---|
| 89 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gc5653517728e4837a91131655b4a18da"></a><!-- doxytag: member="log_exp.h::pow10" ref="gc5653517728e4837a91131655b4a18da" args="(double x)" --> |
---|
| 90 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#gc5653517728e4837a91131655b4a18da">itpp::pow10</a> (double x)</td></tr> |
---|
| 91 | |
---|
| 92 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Calculate ten to the power of x (10^x). <br></td></tr> |
---|
| 93 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g5c448e69f3678181e108e1caead5c28b"></a><!-- doxytag: member="log_exp.h::dB" ref="g5c448e69f3678181e108e1caead5c28b" args="(double x)" --> |
---|
| 94 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#g5c448e69f3678181e108e1caead5c28b">itpp::dB</a> (double x)</td></tr> |
---|
| 95 | |
---|
| 96 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Decibel of x (10*log10(x)). <br></td></tr> |
---|
| 97 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g9a4a3d1188d2ec6a6815c237bd3ab2cc"></a><!-- doxytag: member="log_exp.h::inv_dB" ref="g9a4a3d1188d2ec6a6815c237bd3ab2cc" args="(double x)" --> |
---|
| 98 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#g9a4a3d1188d2ec6a6815c237bd3ab2cc">itpp::inv_dB</a> (double x)</td></tr> |
---|
| 99 | |
---|
| 100 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Inverse of decibel of x. <br></td></tr> |
---|
| 101 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g70cf103d3f9443eb852db037115cd709"></a><!-- doxytag: member="log_exp.h::int2bits" ref="g70cf103d3f9443eb852db037115cd709" args="(int n)" --> |
---|
| 102 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#g70cf103d3f9443eb852db037115cd709">itpp::int2bits</a> (int n)</td></tr> |
---|
| 103 | |
---|
| 104 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Calculate the number of bits needed to represent an inteager <code>n</code>. <br></td></tr> |
---|
| 105 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gef5f3fac5ff2afee6458ea7901323c61"></a><!-- doxytag: member="log_exp.h::levels2bits" ref="gef5f3fac5ff2afee6458ea7901323c61" args="(int n)" --> |
---|
| 106 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#gef5f3fac5ff2afee6458ea7901323c61">itpp::levels2bits</a> (int n)</td></tr> |
---|
| 107 | |
---|
| 108 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Calculate the number of bits needed to represent <code>n</code> different values (levels). <br></td></tr> |
---|
| 109 | <tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#g02907e0ed7d04cde3a43e2a9d00c24c0">itpp::trunc_log</a> (double x)</td></tr> |
---|
| 110 | |
---|
| 111 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Truncated natural logarithm function. <a href="group__logexpfunc.html#g02907e0ed7d04cde3a43e2a9d00c24c0"></a><br></td></tr> |
---|
| 112 | <tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#ga62c8362aeeb68ba0fc65c99267bd1fd">itpp::trunc_exp</a> (double x)</td></tr> |
---|
| 113 | |
---|
| 114 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Truncated exponential function. <a href="group__logexpfunc.html#ga62c8362aeeb68ba0fc65c99267bd1fd"></a><br></td></tr> |
---|
| 115 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g1b295e7695ab2a3290bfadb26a149304"></a><!-- doxytag: member="log_exp.h::log_add" ref="g1b295e7695ab2a3290bfadb26a149304" args="(double log_a, double log_b)" --> |
---|
| 116 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#g1b295e7695ab2a3290bfadb26a149304">itpp::log_add</a> (double log_a, double log_b)</td></tr> |
---|
| 117 | |
---|
| 118 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Safe substitute for <code>log(exp(log_a) + exp(log_b))</code>. <br></td></tr> |
---|
| 119 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gc1495ce5d82dc54376a5550ccc76df7a"></a><!-- doxytag: member="log_exp.h::exp" ref="gc1495ce5d82dc54376a5550ccc76df7a" args="(const vec &x)" --> |
---|
| 120 | <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#gc1495ce5d82dc54376a5550ccc76df7a">itpp::exp</a> (const <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> &x)</td></tr> |
---|
| 121 | |
---|
| 122 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Exp of the elements of a vector <code>x</code>. <br></td></tr> |
---|
| 123 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gd4f099ec6f7ad0489d088d815247829c"></a><!-- doxytag: member="log_exp.h::exp" ref="gd4f099ec6f7ad0489d088d815247829c" args="(const cvec &x)" --> |
---|
| 124 | <a class="el" href="classitpp_1_1Vec.html#e83c1408740e41a7e29c383b71d4d544">cvec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#gd4f099ec6f7ad0489d088d815247829c">itpp::exp</a> (const <a class="el" href="classitpp_1_1Vec.html#e83c1408740e41a7e29c383b71d4d544">cvec</a> &x)</td></tr> |
---|
| 125 | |
---|
| 126 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Exp of the elements of a complex vector <code>x</code>. <br></td></tr> |
---|
| 127 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g42899b4c00b0b5e703ac8dfe04b18ac1"></a><!-- doxytag: member="log_exp.h::exp" ref="g42899b4c00b0b5e703ac8dfe04b18ac1" args="(const mat &m)" --> |
---|
| 128 | <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#g42899b4c00b0b5e703ac8dfe04b18ac1">itpp::exp</a> (const <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> &m)</td></tr> |
---|
| 129 | |
---|
| 130 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Exp of the elements of a matrix <code>m</code>. <br></td></tr> |
---|
| 131 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g7a3da29d4e6a8c814237453086793335"></a><!-- doxytag: member="log_exp.h::exp" ref="g7a3da29d4e6a8c814237453086793335" args="(const cmat &m)" --> |
---|
| 132 | <a class="el" href="classitpp_1_1Mat.html#6fbac4b7184807da188e5b85d42f038b">cmat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#g7a3da29d4e6a8c814237453086793335">itpp::exp</a> (const <a class="el" href="classitpp_1_1Mat.html#6fbac4b7184807da188e5b85d42f038b">cmat</a> &m)</td></tr> |
---|
| 133 | |
---|
| 134 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Exp of the elements of a complex matrix <code>m</code>. <br></td></tr> |
---|
| 135 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g0c42d158b1f623f9b72c1ccde7e2fd09"></a><!-- doxytag: member="log_exp.h::pow" ref="g0c42d158b1f623f9b72c1ccde7e2fd09" args="(const double x, const vec &y)" --> |
---|
| 136 | <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#g0c42d158b1f623f9b72c1ccde7e2fd09">itpp::pow</a> (const double x, const <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> &y)</td></tr> |
---|
| 137 | |
---|
| 138 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Calculates x to the power of y (x^y). <br></td></tr> |
---|
| 139 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g0c153229b93549e8a6449327a92c934f"></a><!-- doxytag: member="log_exp.h::pow" ref="g0c153229b93549e8a6449327a92c934f" args="(const double x, const mat &y)" --> |
---|
| 140 | <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#g0c153229b93549e8a6449327a92c934f">itpp::pow</a> (const double x, const <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> &y)</td></tr> |
---|
| 141 | |
---|
| 142 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Calculates x to the power of y (x^y). <br></td></tr> |
---|
| 143 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g9bd8947c2d1056f05812670491668241"></a><!-- doxytag: member="log_exp.h::pow" ref="g9bd8947c2d1056f05812670491668241" args="(const vec &x, const double y)" --> |
---|
| 144 | <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#g9bd8947c2d1056f05812670491668241">itpp::pow</a> (const <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> &x, const double y)</td></tr> |
---|
| 145 | |
---|
| 146 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Calculates x to the power of y (x^y). <br></td></tr> |
---|
| 147 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g40f48a75172e7f8bc8e58ed54262a04d"></a><!-- doxytag: member="log_exp.h::pow" ref="g40f48a75172e7f8bc8e58ed54262a04d" args="(const mat &x, const double y)" --> |
---|
| 148 | <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#g40f48a75172e7f8bc8e58ed54262a04d">itpp::pow</a> (const <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> &x, const double y)</td></tr> |
---|
| 149 | |
---|
| 150 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Calculates x to the power of y (x^y). <br></td></tr> |
---|
| 151 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g054afa4559b8fa4e85e557273bdde7ac"></a><!-- doxytag: member="log_exp.h::pow2" ref="g054afa4559b8fa4e85e557273bdde7ac" args="(const vec &x)" --> |
---|
| 152 | <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#g054afa4559b8fa4e85e557273bdde7ac">itpp::pow2</a> (const <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> &x)</td></tr> |
---|
| 153 | |
---|
| 154 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Calculates two to the power of x (2^x). <br></td></tr> |
---|
| 155 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g0035dfbd1fcffdb28cadacba42ad8996"></a><!-- doxytag: member="log_exp.h::pow2" ref="g0035dfbd1fcffdb28cadacba42ad8996" args="(const mat &x)" --> |
---|
| 156 | <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#g0035dfbd1fcffdb28cadacba42ad8996">itpp::pow2</a> (const <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> &x)</td></tr> |
---|
| 157 | |
---|
| 158 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Calculates two to the power of x (2^x). <br></td></tr> |
---|
| 159 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ge702eea92311fe090faebc2ec9501854"></a><!-- doxytag: member="log_exp.h::pow10" ref="ge702eea92311fe090faebc2ec9501854" args="(const vec &x)" --> |
---|
| 160 | <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#ge702eea92311fe090faebc2ec9501854">itpp::pow10</a> (const <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> &x)</td></tr> |
---|
| 161 | |
---|
| 162 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Calculates ten to the power of x (10^x). <br></td></tr> |
---|
| 163 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g4f390e0a4e938e7d9b98613ad66bdf1c"></a><!-- doxytag: member="log_exp.h::pow10" ref="g4f390e0a4e938e7d9b98613ad66bdf1c" args="(const mat &x)" --> |
---|
| 164 | <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#g4f390e0a4e938e7d9b98613ad66bdf1c">itpp::pow10</a> (const <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> &x)</td></tr> |
---|
| 165 | |
---|
| 166 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Calculates ten to the power of x (10^x). <br></td></tr> |
---|
| 167 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g60e39caa21db1b5f9f6006cf7508fbcb"></a><!-- doxytag: member="log_exp.h::log" ref="g60e39caa21db1b5f9f6006cf7508fbcb" args="(const vec &x)" --> |
---|
| 168 | <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#g60e39caa21db1b5f9f6006cf7508fbcb">itpp::log</a> (const <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> &x)</td></tr> |
---|
| 169 | |
---|
| 170 | <tr><td class="mdescLeft"> </td><td class="mdescRight">The natural logarithm of the elements. <br></td></tr> |
---|
| 171 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g83350f223110246183d90254a7933c75"></a><!-- doxytag: member="log_exp.h::log" ref="g83350f223110246183d90254a7933c75" args="(const mat &x)" --> |
---|
| 172 | <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#g83350f223110246183d90254a7933c75">itpp::log</a> (const <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> &x)</td></tr> |
---|
| 173 | |
---|
| 174 | <tr><td class="mdescLeft"> </td><td class="mdescRight">The natural logarithm of the elements. <br></td></tr> |
---|
| 175 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gc4c7043d21d91e79409c75a732b14c3a"></a><!-- doxytag: member="log_exp.h::log" ref="gc4c7043d21d91e79409c75a732b14c3a" args="(const cvec &x)" --> |
---|
| 176 | <a class="el" href="classitpp_1_1Vec.html#e83c1408740e41a7e29c383b71d4d544">cvec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#gc4c7043d21d91e79409c75a732b14c3a">itpp::log</a> (const <a class="el" href="classitpp_1_1Vec.html#e83c1408740e41a7e29c383b71d4d544">cvec</a> &x)</td></tr> |
---|
| 177 | |
---|
| 178 | <tr><td class="mdescLeft"> </td><td class="mdescRight">The natural logarithm of the elements. <br></td></tr> |
---|
| 179 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g320dc9f6d27a6cfe4e149633fd1ea566"></a><!-- doxytag: member="log_exp.h::log" ref="g320dc9f6d27a6cfe4e149633fd1ea566" args="(const cmat &x)" --> |
---|
| 180 | <a class="el" href="classitpp_1_1Mat.html#6fbac4b7184807da188e5b85d42f038b">cmat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#g320dc9f6d27a6cfe4e149633fd1ea566">itpp::log</a> (const <a class="el" href="classitpp_1_1Mat.html#6fbac4b7184807da188e5b85d42f038b">cmat</a> &x)</td></tr> |
---|
| 181 | |
---|
| 182 | <tr><td class="mdescLeft"> </td><td class="mdescRight">The natural logarithm of the elements. <br></td></tr> |
---|
| 183 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gbaf1eabe626389b5a4aca26b6ef0d86f"></a><!-- doxytag: member="log_exp.h::log2" ref="gbaf1eabe626389b5a4aca26b6ef0d86f" args="(const vec &x)" --> |
---|
| 184 | <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#gbaf1eabe626389b5a4aca26b6ef0d86f">itpp::log2</a> (const <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> &x)</td></tr> |
---|
| 185 | |
---|
| 186 | <tr><td class="mdescLeft"> </td><td class="mdescRight">log-2 of the elements <br></td></tr> |
---|
| 187 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gd50278d885a02a1448976186bb4ad5cd"></a><!-- doxytag: member="log_exp.h::log2" ref="gd50278d885a02a1448976186bb4ad5cd" args="(const mat &x)" --> |
---|
| 188 | <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#gd50278d885a02a1448976186bb4ad5cd">itpp::log2</a> (const <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> &x)</td></tr> |
---|
| 189 | |
---|
| 190 | <tr><td class="mdescLeft"> </td><td class="mdescRight">log-2 of the elements <br></td></tr> |
---|
| 191 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gfc3c7f9e5088c92dff4b569bed1634a8"></a><!-- doxytag: member="log_exp.h::log10" ref="gfc3c7f9e5088c92dff4b569bed1634a8" args="(const vec &x)" --> |
---|
| 192 | <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#gfc3c7f9e5088c92dff4b569bed1634a8">itpp::log10</a> (const <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> &x)</td></tr> |
---|
| 193 | |
---|
| 194 | <tr><td class="mdescLeft"> </td><td class="mdescRight">log-10 of the elements <br></td></tr> |
---|
| 195 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gd24b6c9440eaf8851f2a3173df42a19e"></a><!-- doxytag: member="log_exp.h::log10" ref="gd24b6c9440eaf8851f2a3173df42a19e" args="(const mat &x)" --> |
---|
| 196 | <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#gd24b6c9440eaf8851f2a3173df42a19e">itpp::log10</a> (const <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> &x)</td></tr> |
---|
| 197 | |
---|
| 198 | <tr><td class="mdescLeft"> </td><td class="mdescRight">log-10 of the elements <br></td></tr> |
---|
| 199 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gd0b12b1902cf38b354520884ac18429e"></a><!-- doxytag: member="log_exp.h::logb" ref="gd0b12b1902cf38b354520884ac18429e" args="(double b, const vec &x)" --> |
---|
| 200 | <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#gd0b12b1902cf38b354520884ac18429e">itpp::logb</a> (double b, const <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> &x)</td></tr> |
---|
| 201 | |
---|
| 202 | <tr><td class="mdescLeft"> </td><td class="mdescRight">log-b of <code>x</code> <br></td></tr> |
---|
| 203 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g913e6b2c337604c5ca8991c020a5ab80"></a><!-- doxytag: member="log_exp.h::logb" ref="g913e6b2c337604c5ca8991c020a5ab80" args="(double b, const mat &x)" --> |
---|
| 204 | <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#g913e6b2c337604c5ca8991c020a5ab80">itpp::logb</a> (double b, const <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> &x)</td></tr> |
---|
| 205 | |
---|
| 206 | <tr><td class="mdescLeft"> </td><td class="mdescRight">log-b of <code>x</code> <br></td></tr> |
---|
| 207 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gf6a9b19ce9cb64c65199b3148b1b0469"></a><!-- doxytag: member="log_exp.h::dB" ref="gf6a9b19ce9cb64c65199b3148b1b0469" args="(const vec &x)" --> |
---|
| 208 | <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#gf6a9b19ce9cb64c65199b3148b1b0469">itpp::dB</a> (const <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> &x)</td></tr> |
---|
| 209 | |
---|
| 210 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Calculates 10*log10(x). <br></td></tr> |
---|
| 211 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g03bd0214373c9505ef89b8886746e189"></a><!-- doxytag: member="log_exp.h::dB" ref="g03bd0214373c9505ef89b8886746e189" args="(const mat &x)" --> |
---|
| 212 | <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#g03bd0214373c9505ef89b8886746e189">itpp::dB</a> (const <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> &x)</td></tr> |
---|
| 213 | |
---|
| 214 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Calculates 10*log10(x). <br></td></tr> |
---|
| 215 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g250b6ec368bc12844492285a7bb6ed94"></a><!-- doxytag: member="log_exp.h::inv_dB" ref="g250b6ec368bc12844492285a7bb6ed94" args="(const vec &x)" --> |
---|
| 216 | <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#g250b6ec368bc12844492285a7bb6ed94">itpp::inv_dB</a> (const <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> &x)</td></tr> |
---|
| 217 | |
---|
| 218 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Calulates the inverse of dB, 10^(x/10). <br></td></tr> |
---|
| 219 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g5b4a5173187ffcd178523d63253bb312"></a><!-- doxytag: member="log_exp.h::inv_dB" ref="g5b4a5173187ffcd178523d63253bb312" args="(const mat &x)" --> |
---|
| 220 | <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#g5b4a5173187ffcd178523d63253bb312">itpp::inv_dB</a> (const <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> &x)</td></tr> |
---|
| 221 | |
---|
| 222 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Calculates the inverse of dB, 10^(x/10). <br></td></tr> |
---|
| 223 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gdf1b40ed813a44d3ae68bbbae84b45c6"></a><!-- doxytag: member="log_exp.h::int2bits" ref="gdf1b40ed813a44d3ae68bbbae84b45c6" args="(const ivec &v)" --> |
---|
| 224 | <a class="el" href="classitpp_1_1Vec.html#b03757d874926a9be91535e71af1656e">ivec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#gdf1b40ed813a44d3ae68bbbae84b45c6">itpp::int2bits</a> (const <a class="el" href="classitpp_1_1Vec.html#b03757d874926a9be91535e71af1656e">ivec</a> &v)</td></tr> |
---|
| 225 | |
---|
| 226 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Calculate the number of bits needed to represent each inteager in a vector. <br></td></tr> |
---|
| 227 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g4a774bd5418520f574eddf730333dada"></a><!-- doxytag: member="log_exp.h::levels2bits" ref="g4a774bd5418520f574eddf730333dada" args="(const ivec &v)" --> |
---|
| 228 | <a class="el" href="classitpp_1_1Vec.html#b03757d874926a9be91535e71af1656e">ivec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#g4a774bd5418520f574eddf730333dada">itpp::levels2bits</a> (const <a class="el" href="classitpp_1_1Vec.html#b03757d874926a9be91535e71af1656e">ivec</a> &v)</td></tr> |
---|
| 229 | |
---|
| 230 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Calculate the number of bits needed to represent a numer of levels saved in a vector. <br></td></tr> |
---|
| 231 | <tr><td colspan="2"><br><h2>Variables</h2></td></tr> |
---|
| 232 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g88c6cb15374a05289feecb35fdcd20f3"></a><!-- doxytag: member="log_exp.h::log_double_max" ref="g88c6cb15374a05289feecb35fdcd20f3" args="" --> |
---|
| 233 | const double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#g88c6cb15374a05289feecb35fdcd20f3">itpp::log_double_max</a> = std::log(std::numeric_limits<double>::max())</td></tr> |
---|
| 234 | |
---|
| 235 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Constant definition to speed up <a class="el" href="group__logexpfunc.html#g02907e0ed7d04cde3a43e2a9d00c24c0" title="Truncated natural logarithm function.">trunc_log()</a> and <a class="el" href="group__logexpfunc.html#ga62c8362aeeb68ba0fc65c99267bd1fd" title="Truncated exponential function.">trunc_exp()</a>. <br></td></tr> |
---|
| 236 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g7df3364a77d620d852c447b91dab2c77"></a><!-- doxytag: member="log_exp.h::log_double_min" ref="g7df3364a77d620d852c447b91dab2c77" args="" --> |
---|
| 237 | const double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__logexpfunc.html#g7df3364a77d620d852c447b91dab2c77">itpp::log_double_min</a> = std::log(std::numeric_limits<double>::min())</td></tr> |
---|
| 238 | |
---|
| 239 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Constant definition to speed up <a class="el" href="group__logexpfunc.html#g02907e0ed7d04cde3a43e2a9d00c24c0" title="Truncated natural logarithm function.">trunc_log()</a>, <a class="el" href="group__logexpfunc.html#ga62c8362aeeb68ba0fc65c99267bd1fd" title="Truncated exponential function.">trunc_exp()</a> and <a class="el" href="group__logexpfunc.html#g1b295e7695ab2a3290bfadb26a149304" title="Safe substitute for log(exp(log_a) + exp(log_b)).">log_add()</a>. <br></td></tr> |
---|
| 240 | </table> |
---|
| 241 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
| 242 | Logarithmic and exponenential functions - header file. |
---|
| 243 | <p> |
---|
| 244 | <dl class="author" compact><dt><b>Author:</b></dt><dd>Tony Ottosson, Adam Piatyszek and Conrad Sanderson</dd></dl> |
---|
| 245 | -------------------------------------------------------------------------<p> |
---|
| 246 | Copyright (C) 1995-2008 (see AUTHORS file for a list of contributors)<p> |
---|
| 247 | This file is part of IT++ - a C++ library of mathematical, signal processing, speech processing, and communications classes and functions.<p> |
---|
| 248 | IT++ is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.<p> |
---|
| 249 | IT++ is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.<p> |
---|
| 250 | You should have received a copy of the GNU General Public License along with IT++. If not, see <<a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>>.<p> |
---|
| 251 | ------------------------------------------------------------------------- </div> |
---|
| 252 | <hr size="1"><address style="text-align: right;"><small>Generated on Tue Jun 2 10:02:14 2009 for mixpp by |
---|
| 253 | <a href="http://www.doxygen.org/index.html"> |
---|
| 254 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> |
---|
| 255 | </body> |
---|
| 256 | </html> |
---|