Thanks.

-L 

----- Original Message ----- 
From: "Brett Handley"
...
Here is the actual function I was working on:

    bayes: function [
        {Calculate combined probability.}
        [catch] probabilities [any-block!]
    ] [p0 p1 d] [
        p0: p1: 1.0
        if not parse probabilities [
            any [
                set value number! (p0: value * p0 p1: 1 - value * p1) |
                set value any-type! to end skip
            ]
        ] [throw make error! reduce ['script 'cannot-use 'bayes mold type?
get/any 'value]]
        if zero? d: add p0 p1 [throw make error! "The probabilities cannot
be combined."]
        divide p0 d
    ]

Sorry for the confusion.
Brett.


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to