compute_histogram.m.svn-base
来自「signal procesing toolbox」· SVN-BASE 代码 · 共 15 行
SVN-BASE
15 行
function [h,x] = compute_histogram(M, options)
% compute_histogram - compute the (symmetric) histogram of a vector after threshold.
%
% [h,x] = compute_histogram(M,options);
%
% If M contains only entry in 1...p, where p=max(M), then h is of size p
% h(k) = #{i \ M(i)=k} / length(M)
% If M contains only entry in -p...p, where p=max(abs(M)), then h is of size 2*p+1
% h(k) = #{i \ M(i)=k-p-1} / length(M)
% (you can also force this by setting options.symmetrize=1).
%
% For real valued signals, you can add thresholding by setting options.T
%
% Copyright (c) 2006 Gabriel Peyr
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?