spaz has asked for the wisdom of the Perl Monks concerning the following question:
and then later(let ((g (* 2 (or (gethash word good) 0))) (b (or (gethash word bad) 0))) (unless (< (+ g b) 5) (max .01 (min .99 (float (/ (min 1 (/ b nbad)) + (+ (min 1 (/ g ngood)) + (min 1 (/ b nbad)))))))))
I'd love to know how this works but I'm not too good with LISP, however Perl makes more sense than English sometimes!(let ((prod (apply #'* probs))) (/ prod (+ prod (apply #'* (mapcar #'(lambda (x) (- 1 x)) + probs)))))
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LISP translation help??
by spaz (Pilgrim) on Aug 16, 2002 at 19:52 UTC | |
by dws (Chancellor) on Aug 16, 2002 at 23:07 UTC | |
|
Re: LISP translation help??
by seattlejohn (Deacon) on Aug 16, 2002 at 22:52 UTC |