swh:1:snp:d91631a580497fff421f83ef3e706159a0d67602
Tip revision: ca0cbd288f03c7a29050b3d6698a96b45ccfa4b2 authored by Marko Laine on 15 August 2021, 17:59:37 UTC
cleanup
cleanup
Tip revision: ca0cbd2
cauchypf.m
function y=cauchypf(x,a,b)
% CAUCHYPF Cauchy probability density function
% Marko Laine <marko.laine@fmi.fi>
% $Revision: 1.3 $ $Date: 2012/09/27 11:47:34 $
if nargin<2, a=0; end
if nargin<3, b=1; end
y=1./(1+((x-a)./b).^2)./pi./b;