% TARGETSET file targetset.m Setup for sample arrival at target set % Version of 6/24/95 X = input('Enter population VALUES '); PX = input('Enter population PROBABILITIES '); ms = length(X); x = 1:ms; % Value indices disp('The set of population values is') disp(X); E = input('Enter the set of target values '); ne = length(E); e = zeros(1,ne); for i = 1:ne e(i) = dot(E(i) == X,x); % Target value indices end F = [0 cumsum(PX)]; A = F(1:ms); B = F(2:ms+1); disp('Call for targetrun')