diff options
author | Abhinav Dronamraju | 2017-08-01 20:22:53 +0530 |
---|---|---|
committer | Abhinav Dronamraju | 2017-08-01 20:22:53 +0530 |
commit | ac4326bd2f66e0978e200e4685f14669b8feda82 (patch) | |
tree | 6e480b36f62ceae4d6e0729d99a0727f2f238d8c /demos/Abhinav_Demos/nan_stdev.sci | |
parent | 1f639242264252674aaec1b2726a4389eed9a7c0 (diff) | |
download | Scilab2C_fossee_old-ac4326bd2f66e0978e200e4685f14669b8feda82.tar.gz Scilab2C_fossee_old-ac4326bd2f66e0978e200e4685f14669b8feda82.tar.bz2 Scilab2C_fossee_old-ac4326bd2f66e0978e200e4685f14669b8feda82.zip |
Nanstdev, stdev, nancumsum added
Diffstat (limited to 'demos/Abhinav_Demos/nan_stdev.sci')
-rw-r--r-- | demos/Abhinav_Demos/nan_stdev.sci | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/demos/Abhinav_Demos/nan_stdev.sci b/demos/Abhinav_Demos/nan_stdev.sci new file mode 100644 index 0000000..0ff5b25 --- /dev/null +++ b/demos/Abhinav_Demos/nan_stdev.sci @@ -0,0 +1,31 @@ +function nan_stdev() + +x=[%nan 0.121 %nan 0.5 0.8; 21.9 %nan 1 0.9812 %nan; 0.12 0.65 1.08 12 0.1621; %nan 12 24 1 12] + +disp('Double') + +disp(nanstdev(x)) +disp('') + +disp(nanstdev(x , 'r')) +disp('') + +disp(nanstdev(x, 'c')) +disp('') + +y= float(x) + +disp('Float') + +disp(nanstdev(y)) +disp('') + +disp(nanstdev(y , 'r')) +disp('') + +disp(nanstdev(y, 'c')) +disp('') + + +endfunction + |