cv=std(X)/mean(X);For example if:
X= [1.7 1.6 2.8 5.6 1.3 2.2 1.3 1.1 3.2 1.5 5.2 4.6 5.8 3.0];
then cv=0.5846.
i.e. some stuff and junk about Python, Perl, Matlab, Ruby, Mac X, Linux, Solaris, ...
cv=std(X)/mean(X);t_critical= tinv(1-alpha/2,n-2);
Pval=2*(1-tcdf(abs(t),n-2))
Failed to start the Desktop:
Failure loading desktop classfunction testJavaHash
import java.util.*;
ja_h = Hashtable;
a='aaa';
b=12.23;
c=[1 2; 3 4];
s='marcin';
%add something to hash
ja_h.put(1,a);
ja_h.put(2,b);
ja_h.put(3,c);
ja_h.put(s,c);
%create iterator;
keys = ArrayList(ja_h.keySet( ));
iterator = keys.iterator();
%iterate over all keys
while iterator.hasNext()
key=iterator.next();
val=ja_h.get(key);
key
val
end
ja_h.put([1 2],2);
ja_h.get([1 2])
ans =
[]
As it can be seen, ja_h.get returns nothing.ja_h.put(num2str([1 2]),2);
ja_h.get(num2str([1 2]))
ans =
2
However this solution does not work for e.g. 2x2 matrices ja_h.put(num2str([1 2; 3 4]),2);
ja_h.get(num2str([1 2; 3 4]))
ans =
[]
Similar problems are with mhashtable package available from Matlab Central File Exchange. I do not know why it is so difficult for Matlab engineers to create native Matlab support for Hash tables?
A=ones(64,64,50100). It is huge matrix of double values. Unfortunately operations on such a matrix are very time consuming.sum(A,3)A=uint32(ones(64,64,50100)). In this case performing sum over third dimension takes 211 seconds. When using single instead of double, the time is 204 sec. The difference is not so big, however when using uint8 the time is only 60s. Unfortunately using uint8 when one wants to sum up matrix with over 50000 numbers has no sense unless it is heavily sparse matrix - uint8 holds numbers not bigger than 256.
For example one can divide power spectrum i to 24 radial slices i.e. one slice is 15 degrees (24*15=360) and slice is divided to 30 frequencies (30 rings). The greater radius of the ring, the bigger frequency.
GET DATA
/TYPE=XLS
/FILE='/Users/marcin/Desktop/myPublicationDataAnalysis_newAniso/fs_Lud_byMarcin10/VOT/Sta_fs.xls'
/SHEET=name 'Lat'
/CELLRANGE=full
/READNAMES=off
/ASSUMEDSTRWIDTH=32767.
DATASET NAME DataSet1 WINDOW=FRONT.
BEGIN PROGRAM.
import spss
from spss import Submit
ScalesC=['V'+str(i+1) for i in range(1,10)]
ScalesOA=['V'+str(i+11) for i in range(1,10)]
for v in zip(ScalesC,ScalesOA):
c= "T-TEST PAIRS="+v[0]+" WITH "+v[1]+" (PAIRED) /CRITERIA=CI(.9500) /MISSING=ANALYSIS."
Submit(c)
END PROGRAM.