function PV = AngularWts(F, Fr, QL)

% This software is from:
%   "Q-factor Measurement by using a Vector Network Analyser",
%   A. P. Gregory, National Physical Laboratory Report MAT 58 (2021)
%
% This software is released under the Creative Commons CC0
%   Public Domain Dedication. You should have received a copy of
%   the Legal Code along with this software.
%   If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
%
% Change log :30-October-2021: Released under CC0.
%
% The weights are needed when F consists of equally-spaced
% frequency points (rather than points equally spaced around
% the Q-circle). MAT 58 eqn. (28).
% If F is a column vector, the returned weights (PV) will also
% be a column vector.
ptmp = 2.0*QL*(F-Fr)/Fr;
PV = 1./(ptmp.^2 + 1.0);
