⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 binden.m

📁 patten regnization source从1-14章能运行
💻 M
字号:
function [xb,cb]=binden(n,x)% ----------------------------------------------------------------% function [xb,cb]=binden(n,x)% ----------------------------------------------------------------% Given a 1-dimensional data set this function% devides the space into n bins and calculates bin counts. %% ------------------------------------------------------------------% INPUT%  n       number of bins %  x       data, row vector % OUTPUT%  xb      bin centers. xb(i) center of bin_i%  cb      bin counts. cb(i)=#j, where x_j's in Bin_i %------------------------------------------------------------------- xmax=max(x);xmin=min(x);binwidth=(xmax-xmin)/(n);for i=1:n  xb(i)=binwidth*(i-0.5)+xmin;           %  bincenterendcb=hist(x,xb);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -