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)))))
In reply to LISP translation help?? by spaz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |