matlab std2什么含义,matlab中std2函数计算矩阵的标准差时,分母是除以了n-1还是n?...

MATLAB 中的 std2 函数用于计算矩阵元素的标准差。该函数在计算时使用 n-1 作为分母(Bessel's correction)。示例代码展示了 std2 函数如何应用于图像数据,并提供了与其他统计函数的关联。
摘要由CSDN通过智能技术生成

matlab中std2函数计算矩阵的标准差时,分母是除以了n-1还是n?

这是如下代码

function s = std2(a)

%STD2 Standard deviation of matrix elements.

%   B = STD2(A) computes the standard deviation of the values in

%   A.

%

%   Class Support

%   -------------

%   A can be numeric or logical. B is a scalar of class double.

%

%   Example

%   -------

%       I = imread('liftingbody.png');

%       val = std2(I)

%

%   See also CORR2, MEAN2, MEAN, STD.

%   Copyright 1992-2010 The MathWorks, Inc.

%   $Revision: 5.19.4.6 $  $Date: 2010/09/13 16:14:04 $

% validate that our input is valid for the IMHIST optimization

fast_data_type = isa(a,'logical') || isa(a,'int8') || isa(a,'uint8') || ...

isa(a,'uint16') || isa(a,'int16');

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值