diff options
author | P Sunthar | 2018-10-02 00:09:14 +0530 |
---|---|---|
committer | P Sunthar | 2018-10-02 00:09:14 +0530 |
commit | 6d39446c434cfcca02ae7a4551e2d66edf9def7f (patch) | |
tree | f0e84e8fadd28600bfdeadf1471d59be5eaee54a /Tutorial1_Basic/Scilab_code/mystdev.sci | |
parent | 4d0d95e5748137abe4636dc734b03b4e7ccfd6f5 (diff) | |
download | scilab-tutorials-6d39446c434cfcca02ae7a4551e2d66edf9def7f.tar.gz scilab-tutorials-6d39446c434cfcca02ae7a4551e2d66edf9def7f.tar.bz2 scilab-tutorials-6d39446c434cfcca02ae7a4551e2d66edf9def7f.zip |
Renamed dirs
Diffstat (limited to 'Tutorial1_Basic/Scilab_code/mystdev.sci')
-rw-r--r-- | Tutorial1_Basic/Scilab_code/mystdev.sci | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/Tutorial1_Basic/Scilab_code/mystdev.sci b/Tutorial1_Basic/Scilab_code/mystdev.sci deleted file mode 100644 index 53849a4..0000000 --- a/Tutorial1_Basic/Scilab_code/mystdev.sci +++ /dev/null @@ -1,8 +0,0 @@ -//A function to compute standard deviation of a given data -//Input: Data (a vector) and mean of the data as input -//Output: standard deviation of the data - -function standard_dev = mystdev(data,mean_of_data) - temp = (data - mean_of_data*ones(length(data)))^2; - standard_dev = sqrt(sum(temp)/(length(data)-1)); -endfunction |