Trending Up...

Trending Up...

calculate standard deviation single pass

var=sum((X(i)-mean)^2)/(N-1)sum((X(i)-mean)^2)=sum(X(i)^2 - 2*X(i)*mean + mean^2)=sum(X(i)^2) - 2*sum(X(i))*mean + N*mean^2because sum(X(i)) = N*mean...

2011-06-04 09:43:00

阅读数 587

评论数 0

Matlab useful tips

A([1 2 3]) % [] as a set of subscriptsx=[1 2 3] % [] as vertcatx=[1;2;3] % [] as horzcat1) define variablex=52) list all variableswho/whos3) clear al...

2011-06-03 18:17:00

阅读数 1136

评论数 0

提示
确定要删除当前文章?
取消 删除
关闭
关闭