ó
å…#Yc@s@ddlZd„Zd„Zd„Zdd„Zd„ZdS(iÿÿÿÿNcCsQg}x5|D]-}yt|ƒ}|j|ƒWq
q
Xq
Wtj|ƒ}|S(N(tfloattappendtnptarray(Rtarray2tcoltnumtarray3((s2/home/s/sultans/web/python/demo/numpy/Analytics.pyt	normalizes
cCs'ddlm}|j|ƒ}|dS(Niÿÿÿÿ(tstatsi(tscipyR	tmode(RR	tmodeArr((s2/home/s/sultans/web/python/demo/numpy/Analytics.pyR!scCsdt|ƒ}|dt|jƒ7}|dttj|ƒƒ7}|dttj|ƒƒ7}|dttj|ƒƒ7}|dtt|ƒƒ7}|dttj|ƒƒ7}|dttj|ƒƒ7}|d	ttj	|ƒƒ7}|d
ttj
|ƒƒ7}|S(Ns
Data points: s
Count......: s
Sum........: s
Average....: s
Median.....: s
Mode.......: s
Minimum....: s
Maximum....: s
Range......: s
Std.Dev....: (tstrtsizeRtsumtaveragetmedianRtmintmaxtptptstd(Rtdata((s2/home/s/sultans/web/python/demo/numpy/Analytics.pyttoString+sicCsutjgƒ}|dkr(||}n|dkrGt|Œ|}n|dkrqtj|ƒ}|jƒ}n|S(NtrowRtall(RRtziptflatten(t	array2dimttypetidxR((s2/home/s/sultans/web/python/demo/numpy/Analytics.pytslice<s
cCst|Œ}|S(N(R(RR((s2/home/s/sultans/web/python/demo/numpy/Analytics.pyt	transposeOs(tnumpyRRRRRR (((s2/home/s/sultans/web/python/demo/numpy/Analytics.pyt<module>	s