% NarrowBandSetParameters - set comms parameters for Narrowband MC simulation
%
% This script sets a structure named Parameters to be used by 
% the system simulator.

%% Parameters
% construct structure of parameters to be passed to system simulator
% communications parameters
Parameters.T   = 1/25000;     % symbol period
Parameters.fsT = 8;           % samples per symbol
Parameters.Es  = 1;           % normalize received symbol energy to 1 (0dB)
Parameters.EsOverN0 = 6;      % Signal-to-noise ratio (Es/N0)
Parameters.Alphabet = [1 -1]; % BPSK
Parameters.NSymbols = 50;     % number of Symbols per frame

Parameters.TrainLoc    = floor(Parameters.NSymbols/2); % location of training seq
Parameters.TrainLength = 10;
Parameters.TrainingSeq = RandomSymbols( Parameters.TrainLength, ...
                                        Parameters.Alphabet, [0.5 0.5] );

% channel                                    
Parameters.ChannelParams = tux(); % channel model
Parameters.fd            = 3;     % Doppler
Parameters.L             = 2;     % diversity order

% discrete-time equivalent impulse response (raised cosine pulse)
fsT = Parameters.fsT;
tts = ( (0:fsT-1) + 1/2 )/fsT;
Parameters.hh = sqrt(2/3) * ( 1 - cos(2*pi*tts)*sin(pi/fsT)/(pi/fsT));

% equally likely priors
Parameters.Priors   = ones( size( Parameters.Alphabet) )/ ...
    length( Parameters.Alphabet ); 