| The screen shot shows an entire fuzzy logic
model in Spark! The model is simple and helps determine the "aggressiveness"
level of a unit in a game.
The window on the top right is the "Our Health"
variable. It has 3 sets: "Near death",
"Good", and "Excellent". Our health is
currently "good", but also has a little of the "Excellent" component.
Our enemy (upper middle) has both "Good" and "Near
Death" components to his health.
The window in the bottom left is the "Aggressiveness"
variable - this is the output of the fuzzy system. It rates the
aggressiveness as either "Run Away", "Fight Defensively", or "All out attack!". With the rules
for this system, the output is "Fight Defensively".
Note that the output variable uses singleton variables, as we want
a discreet output from the system.
Finally, in the bottom right we have the rule view. The bolded
lines show the currently active rules and the gray bars below each term
show that term's "activation level".
As you are running your application you will see the model change to
reflect it's current state. The rule view displays the currently
active rules and the input variable views show the activation levels of
the variables and the output variable view shows the result of the input
and the rules.
|