matlab中std和std2的区别,matlab中std2函数计算矩阵的标准差时,分母是除以了n-1还是n? - 计算模拟 - 小木虫 - 学术 科研 互动社区...

默认的是N-1吧,以下是MATLAB 帮助文档的说明:

STD Standard deviation.

For vectors, Y = STD(X) returns the standard deviation.  For matrices,

Y is a row vector containing the standard deviation of each column.  For

N-D arrays, STD operates along the first non-singleton dimension of X.

STD normalizes Y by (N-1), where N is the sample size.  This is the

sqrt of an unbiased estimator of the variance of the population from

which X is drawn, as long as X consists of independent, identically

distributed samples.

Y = STD(X,1) normalizes by N and produces the square root of the second

moment of the sample about its mean.  STD(X,0) is the same as STD(X).

Y = STD(X,FLAG,DIM) takes the standard deviation along the dimension

DIM of X.  Pass in FLAG==0 to use the default normalization by N-1, or

1 to use N,

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值