Fuzzy logic question

R

Ray Gardener

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
 
J

Jeff Schwab

Ray said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top