% LMex020617_4th.m
% Example 2.6.17 p 104 in
% Larsen & Marx (2006) Introduction to Mathematical Statistics, 4th edition
% Writtten by Eugene Gallagher, Eugene.Gallagher@umb.edu
% http://alpha.es.umb.edu/faculty/edg/files/edgwebp.html
% Written 1/15/2011 & last revised 1/16/2011
% A deliveryman is currently at Point X and needs to stop at pont O before
% driving through to point Y (see Figure 2.6.14 on p 104 in Larsen & Marx
% (2006). How many different routes can he take wiout ever going out of his
% way?
% Program call's Gallagher's brillouin.m, the brillouin's biodiversity
% index.
DATA=[9 2;5 3];
N=sum(DATA')';
Permutations=exp(sum(N.*brillouin(DATA)));