Re: Prolog examples please?? HELP?

From: jan grant (jan.grant@bristol.ac.uk)
Date: Wed Jan 02 2002 - 16:08:55 MET

  • Next message: Farrokh Sharifi: "Special Session on Industrial Applications of Neuro-Fuzzy Systems: Modeling and Control"

    ELB wrote:

    > disease(1,'Common
    > cold',0.02,[1,0.9,0.05,2,0.8,0.02,3,0.8,0.02,5,0.6,0.01,6,0.99,0.01,7,0.2,0.
    > 01,8,0.5,0.01,15,0.8,0.01,34,0.01,0.01]).

    > Please can you offer any help

    One piece of advice (which is purely stylistic but may help you a great
    deal in simplifying your list processing stuff) is to wrap your triples
    in the
    symptom list inside a functor.

    Ie:
    disease(1, 'Common cold', 0.02, [symptom(1, 0.9, 0.05), symptom(2, 0.8,
    0.02), ...]).

    Makes processing the list using simple list/set predicates much easier.

    jan

    PS. Once wrote a symbolic math package for elementary group theory in
    FORTRAN 77
    so you've my sympathy re maths undergrads and inappropriate
    implementation
    language choices :-)

    -- 
    perl -e 's?ck?t??print:perl==pants if $_="Just Another Perl Hacker\n"'
    

    ############################################################################ This message was posted through the fuzzy mailing list. (1) To subscribe to this mailing list, send a message body of "SUB FUZZY-MAIL myFirstName mySurname" to listproc@dbai.tuwien.ac.at (2) To unsubscribe from this mailing list, send a message body of "UNSUB FUZZY-MAIL" or "UNSUB FUZZY-MAIL yoursubscription@email.address.com" to listproc@dbai.tuwien.ac.at (3) To reach the human who maintains the list, send mail to fuzzy-owner@dbai.tuwien.ac.at (4) WWW access and other information on Fuzzy Sets and Logic see http://www.dbai.tuwien.ac.at/ftp/mlowner/fuzzy-mail.info (5) WWW archive: http://www.dbai.tuwien.ac.at/marchives/fuzzy-mail/index.html



    This archive was generated by hypermail 2b30 : Wed Jan 02 2002 - 16:13:05 MET