| ²é¿´: 2209 | »Ø¸´: 3 | ||||
niexianlingͳæ (³õÈëÎÄ̳)
|
[ÇóÖú]
matlabÖÐstd2º¯Êý¼ÆËã¾ØÕóµÄ±ê×¼²îʱ£¬·ÖĸÊdzýÒÔÁËn-1»¹ÊÇn£¿
|
|
matlabÖÐstd2º¯Êý¼ÆËã¾ØÕóµÄ±ê×¼²îʱ£¬·ÖĸÊdzýÒÔÁË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'); % only use IMHIST for images of sufficient size big_enough = numel(a) > 300000; if fast_data_type && isequal(ndims(a),2) && ~issparse(a) && big_enough % compute histogram if islogical(a) num_bins = 2; else data_type = class(a); num_bins = double(intmax(data_type)) - double(intmin(data_type)) + 1; end [bin_counts bin_values] = imhist(a, num_bins); % compute standard deviation total_pixels = numel(a); sum_of_pixels = sum(bin_counts .* bin_values); mean_pixel = sum_of_pixels / total_pixels; bin_value_offsets = bin_values - mean_pixel; bin_value_offsets_sqrd = bin_value_offsets .^ 2; offset_summation = sum( bin_counts .* bin_value_offsets_sqrd); s = sqrt(offset_summation / total_pixels); else % use simple implementation if ~isa(a,'double') a = double(a); end s = std(a( );end |
» ²ÂÄãϲ»¶
ɽÎ÷´óͬ´óѧÎïÀíѧ˶ʿÑо¿ÉúÕÐÊÕµ÷¼ÁÉú
ÒѾÓÐ0È˻ظ´
[µ÷¼ÁÐÅÏ¢]211ÖÇÄÜÈ˹¤¸ÐÖª·½Ïò¹ú¼ÒÇàÄêÌØÆ¸×¨¼Ò¿ÎÌâ×éÕÐÊÕµ÷¼ÁÑо¿Éú
ÒѾÓÐ0È˻ظ´
ÎïÀíѧIÂÛÎÄÈóÉ«/·ÒëÔõôÊÕ·Ñ?
ÒѾÓÐ238È˻ظ´
£Ûµ÷¼ÁÐÅÏ¢£Ý211ÖÇÄÜÈ˹¤¸ÐÖª·½Ïò¹ú¼ÒÇàÄêÌØÆ¸×¨¼Ò¿ÎÌâ×éÕÐÊÕµ÷¼ÁÑо¿Éú
ÒѾÓÐ0È˻ظ´
[µ÷¼ÁÐÅÏ¢]211ÖÇÄÜÈ˹¤¸ÐÖª·½Ïò¹ú¼ÒÇàÄêÌØÆ¸×¨¼Ò¿ÎÌâ×éÕÐÊÕµ÷¼ÁÑо¿Éú
ÒѾÓÐ0È˻ظ´
0702Ò»Ö¾Ô¸¼ª´óBÇøÇóµ÷¼Á ±¾¿ÆÆÚ¼ä·¢±íһƪSci
ÒѾÓÐ2È˻ظ´
070200Çóµ÷¼Á£¬Ò»Ö¾Ô¸Ä³211£¬288·Ö
ÒѾÓÐ18È˻ظ´
·¨¹ú²©Ê¿ºóְλ
ÒѾÓÐ0È˻ظ´
ÖØÇì½»´ó26Äê˶ʿÉúÕÐÉúÄâµ÷¼Á֪ͨÒѳö£¡»¶Ó¼ÓÈë»úÆ÷ÊÓ¾õÓë3D¹âѧ³ÉÏñ¿ÎÌâ×é¡£
ÒѾÓÐ0È˻ظ´

ÔÂÖ»À¶
Ö÷¹ÜÇø³¤ (Ö°Òµ×÷¼Ò)
-

ר¼Ò¾Ñé: +1059 - ¼ÆËãÇ¿Ìû: 8
- Ó¦Öú: 1712 (½²Ê¦)
- ¹ó±ö: 8.888
- ½ð±Ò: 68128.7
- É¢½ð: 1938
- ºì»¨: 443
- ɳ·¢: 4
- Ìû×Ó: 4373
- ÔÚÏß: 3291.4Сʱ
- ³æºÅ: 1122189
- ×¢²á: 2010-10-14
- רҵ: ÓîÖæÑ§
- ¹ÜϽ: ¼ÆËãÄ£ÄâÇø
¡¾´ð°¸¡¿Ó¦Öú»ØÌû
¡ï
¸Ðл²ÎÓ룬ӦÖúÖ¸Êý +1
csgt0: ½ð±Ò+1, лл 2013-06-28 11:32:57
¸Ðл²ÎÓ룬ӦÖúÖ¸Êý +1
csgt0: ½ð±Ò+1, лл 2013-06-28 11:32:57
|
ĬÈϵÄÊÇ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. |

2Â¥2013-06-27 10:34:09
niexianling
ͳæ (³õÈëÎÄ̳)
- Ó¦Öú: 0 (Ó×¶ùÔ°)
- ½ð±Ò: 20
- ºì»¨: 2
- Ìû×Ó: 50
- ÔÚÏß: 23.4Сʱ
- ³æºÅ: 1661372
- ×¢²á: 2012-03-03
- ÐÔ±ð: MM
- רҵ: »¯Ñ§¼ÆÁ¿Ñ§Ó뻯ѧÐÅϢѧ

3Â¥2013-06-27 11:00:36
somomo91
ר¼Ò¹ËÎÊ (Ö°Òµ×÷¼Ò)
-

ר¼Ò¾Ñé: +3 - ¼ÆËãÇ¿Ìû: 1
- Ó¦Öú: 144 (¸ßÖÐÉú)
- ½ð±Ò: 19353
- ºì»¨: 115
- Ìû×Ó: 3854
- ÔÚÏß: 1053.2Сʱ
- ³æºÅ: 2399301
- ×¢²á: 2013-04-03
- רҵ: ¶¯Á¦Ñ§Óë¿ØÖÆ
- ¹ÜϽ: ¼ÆËãÄ£Äâ
¡¾´ð°¸¡¿Ó¦Öú»ØÌû
¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï
¸Ðл²ÎÓ룬ӦÖúÖ¸Êý +1
niexianling: ½ð±Ò+30, ¡ïÓаïÖú, лл£¬ÎÒÖªµÀÁË 2013-06-27 20:49:12
csgt0: ½ð±Ò+1, лл 2013-06-28 11:33:11
¸Ðл²ÎÓ룬ӦÖúÖ¸Êý +1
niexianling: ½ð±Ò+30, ¡ïÓаïÖú, лл£¬ÎÒÖªµÀÁË 2013-06-27 20:49:12
csgt0: ½ð±Ò+1, лл 2013-06-28 11:33:11
|
Óöµ½¹ýÕâ¸öÎÊÌâ matlab µÄÈ˻شð¹ý £º std2 µ÷ÓõÄÊÇ std µÄËã·¨£¬Ò²¾ÍÊÇ˵£¬ËüÓõÄÊÇĬÈ쵀 (N-1)£¬ ³ý·Ç°Ñ std ÀïÃæµÄ²ÎÊý FLAG==0 £¬±ä³É FLAG==1 |
4Â¥2013-06-27 14:43:54














);
»Ø¸´´ËÂ¥