diff options
Diffstat (limited to '2606/CH11/EX11.5')
-rwxr-xr-x | 2606/CH11/EX11.5/ex11_5.jpg | bin | 0 -> 7812 bytes | |||
-rwxr-xr-x | 2606/CH11/EX11.5/ex11_5.sce | 21 |
2 files changed, 21 insertions, 0 deletions
diff --git a/2606/CH11/EX11.5/ex11_5.jpg b/2606/CH11/EX11.5/ex11_5.jpg Binary files differnew file mode 100755 index 000000000..4c9f79d1b --- /dev/null +++ b/2606/CH11/EX11.5/ex11_5.jpg diff --git a/2606/CH11/EX11.5/ex11_5.sce b/2606/CH11/EX11.5/ex11_5.sce new file mode 100755 index 000000000..3d66064c2 --- /dev/null +++ b/2606/CH11/EX11.5/ex11_5.sce @@ -0,0 +1,21 @@ +//Page Number: 11.15
+//Example 11.5
+clc;
+//Given
+//Picture elements
+pe=2D+6;
+//Brightness levels
+l=16;
+//Rate of repeatation
+rr=32; //Per second
+
+
+//As H(X)=-Sum of[P(xi)log2P(xi)]
+//Where i=0 to n;
+HofX=(-1)*l*[(1/l)*log2(1/l)];
+
+r=pe*rr;
+
+//As R=r*H(X)
+R=r*HofX;
+disp('b/symbol',R,'Average rate of information conveyed:');
|