Skip to content

Commit

Permalink
type spec for random-normal-bivariate.
Browse files Browse the repository at this point in the history
Signed-off-by: AJ Rossini <blindglobe@gmail.com>
  • Loading branch information
blindglobe committed May 11, 2009
1 parent 0e2eddf commit 5adc645
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion normal.lisp
Expand Up @@ -271,7 +271,12 @@
;; Contributed by Joel J. Adamson <adamsonj@email.unc.edu>
;;

(defun random-normal-bivariate (sigma-x sigma-y &key (rho 0.0) (error-limit 500) (tries 0))
(declaim (ftype (function (double-float
double-float
&key (rho double-float)
(error-limit integer)
(tries integer)) double-float) random-normal-bivariate))
(defun random-normal-bivariate (sigma-x sigma-y &key (rho 0.0d0) (error-limit 500) (tries 0))
"Return a pair of numbers with specific correlation coefficent rho
and with specified variances sigma-x and sigma-y; a direct port of
gsl_ran_bivariate_gaussian from the GNU Scientific Library:
Expand Down

0 comments on commit 5adc645

Please sign in to comment.