function [ peak, location, FilterOut ] = hdlv_uvmtb_reference ( CorrFilter, RxSignal )

%#codegen

% Correlate Rx signal against matched filter
FilterOut = filter(CorrFilter,1,RxSignal);

% Find peak magnitude & location
[peak, location] = max(abs(FilterOut));

end
