Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7503113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T21:06:42+00:00 2026-05-29T21:06:42+00:00

I should implement a fuzzy function through php. the problem it is I haven’t

  • 0

I should implement a fuzzy function through php. the problem it is I haven’t any idea how create it and I looked for in the web and I didn’t found anything.Now I would your help to say me how I could create a typos of php fuzzy function. Every function could go well.It will be to understand for me the general model and make me an idea in how I create fuzzy function to myself.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T21:06:44+00:00Added an answer on May 29, 2026 at 9:06 pm

    Depends on what do you call a fuzzy functions, but
    Basically fuzzy logic translates into a set of IF conditions of this kind:

    Let’s suppose we want to write fuzzy logic rules for a video game monster. We decide to start with two variables: hit points (HP) and firepower (FP). We might start with this:

    HP/FP   Very low HP     Low HP  Medium HP   High HP     Very high HP
    Very weak FP    Retreat!    Retreat!    Defend  Defend  Attack
    Weak FP     Retreat!    Defend  Defend  Attack  Attack
    Medium FP   Retreat!    Defend  Attack  Attack  Full attack!
    High FP     Retreat!    Defend  Attack  Attack  Full attack!
    Very high FP    Defend  Attack  Attack  Full attack!    Full attack!
    
    function fuzzy ($hp, $firepower)
    {
        if($hp == 'very low hp' && $firepower == 'very weak fp' ) return 'retreat';
        if($hp == 'low hp' && $firepower == 'very weak fp' ) return 'retreat';    
        if($hp == 'high hp' && $firepower == 'very weak fp' ) return 'defend';
    ...
        if($hp == 'high hp' && $firepower == 'very high fp' ) return 'full attack';
        if($hp == 'very high hp' && $firepower == 'very high fp' ) return 'full attack';
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can anyone give an idea of how should I implement undo/redo of cutting/copying/pasting of
I'm looking to implement fuzzy search for a small PHP/MySQL application. Specifically, I have
I am trying to determine, how I should implement local time in a web-app.
I have an interface for a variety of classes, all of which should implement
I need a C# library to deal with matrices. It should implement singular value
Should I implement named parameters in Java using Hash tables? I saw this entry:
What single aspect of agile development should we implement first to improve our development
I want to implement a derived class that should also implement an interface, that
What is the best practice? How should I implement it so that the database
How should I properly implement data access in my custom model binders? Like in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.