vectorize beampattern calculation
add parameter: reference value

Used as reference value (nominator) instead of retrieving it from the
given beampattern.
remove commented code