diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /331/CH3/EX3.10/Example_3_10.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '331/CH3/EX3.10/Example_3_10.sce')
-rwxr-xr-x | 331/CH3/EX3.10/Example_3_10.sce | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/331/CH3/EX3.10/Example_3_10.sce b/331/CH3/EX3.10/Example_3_10.sce new file mode 100755 index 000000000..6049dc109 --- /dev/null +++ b/331/CH3/EX3.10/Example_3_10.sce @@ -0,0 +1,23 @@ +//Caption: Mode of grouped data +//Example3.10 +//Page47 +clear; +clc; +X = [0,2;2,4;4,6;6,8;8,10;10,12;12,14;14,16;16,18]; +f = [10,15,20,30,8,5,4,3,5]; +[Maxf,i]= max(f); +L = X(i,1); //Lower Limit of the Modal class +C = diff(X(i,:)); //Width of the class interval +f1 = abs(f(i)-f(i-1));//Absolute difference between freq. of the modal class and +//that of its immediately preceding class +f2 = abs(f(i)-f(i+1));//Absolute difference beween freq. of the modal class and +//that of its immediately succeeding class +Mode = L+((f1/(f1+f2))*C); +disp(Mode,'Mode of the annual revenues of the firms is =') +disp('crores') +//Result +//Mode of the annual revenues of the firms is = +// +// 6.625 +// +// crores
\ No newline at end of file |