📄 histo4.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"><html><head> <title>Description of histo4</title> <meta name="keywords" content="histo4"> <meta name="description" content="HISTO4 calculates histogram for rows and supports data compression"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="generator" content="m2html © 2003 Guillaume Flandin"> <meta name="robots" content="index, follow"> <link type="text/css" rel="stylesheet" href="../m2html.css"></head><body><a name="_top"></a><div><a href="../index.html">Home</a> > <a href="index.html">tsa</a> > histo4.m</div><!--<table width="100%"><tr><td align="left"><a href="../index.html"><img alt="<" border="0" src="../left.png"> Master index</a></td><td align="right"><a href="index.html">Index for tsa <img alt=">" border="0" src="../right.png"></a></td></tr></table>--><h1>histo4</h1><h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2><div class="box"><strong>HISTO4 calculates histogram for rows and supports data compression</strong></div><h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2><div class="box"><strong>function [R,tix]=histo4(Y) </strong></div><h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2><div class="fragment"><pre class="comment"> HISTO4 calculates histogram for rows and supports data compression
R = HISTO4(Y)
R is a struct with th fields
R.X are the bin-values
R.H is the frequency of occurence of value X
R.N are the number of samples
HISTO4 might be useful for data compression, because
[R,tix] = histo4(Y)
is the compression step
R.X(tix,:)
is the decompression step
The effort (in memory and speed) for compression is O(n*log(n))
The effort (in memory and speed) for decompression is only O(n)
see also: <a href="histo.html" class="code" title="function [H,X]=histo(Y,Mode)">HISTO</a>, <a href="histo2.html" class="code" title="function R=histo2(Y)">HISTO2</a>, <a href="histo3.html" class="code" title="function [R,tix]=histo3(Y)">HISTO3</a>, <a href="histo4.html" class="code" title="function [R,tix]=histo4(Y)">HISTO4</a> REFERENCE(S): C.E. Shannon and W. Weaver "The mathematical theory of communication" University of Illinois Press, Urbana 1949 (reprint 1963).</pre></div><!-- crossreference --><h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>This function calls:<ul style="list-style-image:url(../matlabicon.gif)"></ul>This function is called by:<ul style="list-style-image:url(../matlabicon.gif)"><li><a href="histo.html" class="code" title="function [H,X]=histo(Y,Mode)">histo</a> HISTO calculates histogram for each column</li></ul><!-- crossreference --><hr><address>Generated on Tue 17-Aug-2004 00:13:21 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/">m2html</a></strong> © 2003</address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -