Skip to content

Commit d8ef735

Browse files
author
Crouse
committed
Bug fix.
1 parent de6059f commit d8ef735

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Mathematical_Functions/Statistics/bivarNormCDF.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@
2323
%REFERENCES:
2424
%[1] A. Genz, "Numerical computation of rectangular bivariate and
2525
% trivariate normal and t probabilites," Statistics and Computing, vol.
26-
% 14, pp. 251260, 2004.
26+
% 14, pp. 251-260, 2004.
2727
%
2828
%July 2021 David F. Crouse, Naval Research Laboratory, Washington D.C.
2929
%(UNCLASSIFIED) DISTRIBUTION STATEMENT A. Approved for public releas
3030

31-
if(nargin<3||isempty(mu))
31+
if(nargin<2||isempty(mu))
3232
mu=[0;0];
3333
end
3434

35-
if(nargin<4||isempty(R))
35+
if(nargin<3||isempty(R))
3636
R=eye(2,2);
3737
end
3838

@@ -48,7 +48,7 @@
4848
k=-b2;
4949
s=2*(rho>=0)-1;
5050

51-
%Points to use for subature integration.
51+
%Points to use for cubature integration.
5252
[xi,w]=GaussLegendrePoints1D(20);
5353

5454
if(abs(rho)<0.925)

0 commit comments

Comments
 (0)