471,585 Members | 1,555 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,585 software developers and data experts.

Fuzzy logic question

I was wondering if anyone had tried implementing fuzzy logic set
concepts in C++, because in FL, the concept of "type" or "class"
is fuzzy; things belong (or are of) a given type only by degree.
e.g., in a hypothetical fuzzy C++ language one could say:

class pickle : public vegetable 0.2
{
// pickle is not so much a vegetable as, say, onion is.
};

With the membership quantification, one could then perform FL
operations that use the fuzzy aspects of each class and the
objects instantiated from them.
Ray
Jul 22 '05 #1
1 4070
Ray Gardener wrote:
I was wondering if anyone had tried implementing fuzzy logic set
concepts in C++, because in FL, the concept of "type" or "class"
is fuzzy; things belong (or are of) a given type only by degree.
e.g., in a hypothetical fuzzy C++ language one could say:

class pickle : public vegetable 0.2
{
// pickle is not so much a vegetable as, say, onion is.
};

With the membership quantification, one could then perform FL
operations that use the fuzzy aspects of each class and the
objects instantiated from them.
Ray


A watered-down version of it is implemented by the STL, although I'm not
sure most folks think of it as fuzzy logic. :)

The C++ implementation relies heavily on templates. An example is the
standard iterators. The interface of the prototypical iterator is
exactly like that of a pointer. Some iterators support some, but not
all, of the operations supported by actual pointers. Such iterators are
sort of pointer-like, and sort of not. Several different levels of
pointer-likeness have been classified, from Random Access Iterators down
through Input and Output Iterators, with Forward Iterators somewhere in
the middle.

You can probably fake it to some extent with mixins, too, but I haven't
given that much thought.

-Jeff

Jul 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by BBands | last post: by
1 post views Thread by Evaluating Fuzzy SW | last post: by
reply views Thread by DNKMCA | last post: by
1 post views Thread by Alberto | last post: by
24 posts views Thread by cassetti | last post: by
14 posts views Thread by Steve Bergman | last post: by
1 post views Thread by nachu | last post: by
reply views Thread by adi4u | last post: by
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by Anwar ali | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.