Kuro5hin.org: technology and culture, from the trenches
create account | help/FAQ | contact | links | search | IRC | site news
[ Everything | Diaries | Technology | Science | Culture | Politics | Media | News | Internet | Op-Ed | Fiction | Meta | MLP ]
We need your support: buy an ad | premium membership

[P]
Fuzzy logic functions (for perl)

By mattdm in News
Fri Apr 07, 2000 at 10:45:36 AM EST
Tags: You Know... (all tags)
You Know...

Probably many of us read the Brunching Shuttlecocks religiously, but even those who don't should see today's feature, a list of perl-esque functions for dealing with fuzzy logic, including whatever, skim, and more....


Sponsors

Voxel dot net
o Managed Hosting
o VoxCAST Content Delivery
o Raw Infrastructure

Login

Related Links
o Brunching Shuttlecocks
o functions for dealing with fuzzy logic
o Also by mattdm


Display: Sort:
Fuzzy logic functions (for perl) | 19 comments (19 topical, editorial, 0 hidden)
Wow. So, by writing a couple quick ... (4.30 / 3) (#1)
by rusty on Thu Apr 06, 2000 at 07:42:56 PM EST

rusty voted 1 on this story.

Wow. So, by writing a couple quick functions, using LWP to grab online news sites, then running pile on the articles, then evaluating skim on each article, and running oblique on the output, you could pretty much fire the entire editorial staff of suck.

And, take the same script, target it toward slashdot, and you can fire the segafualt editors too! I think we should get Larry working on this as soon as possible. :-)

____
Not the real rusty

I just read the article. If you're... (none / 0) (#3)
by FlinkDelDinky on Thu Apr 06, 2000 at 08:36:37 PM EST

FlinkDelDinky voted 1 on this story.

I just read the article. If you're a programmer it's pretty funny. Even though I'm giving it a one it probably doesn't deserve it because it's nothing but (pretty good) humor. Maybe if we had some way to designate a good fluff article from a 'serious' article in our voting.

Re: I just read the article. If you're... (none / 0) (#13)
by mattdm on Fri Apr 07, 2000 at 11:29:33 AM EST

well, i woulda put it in 'quickies' if there were such a thing. but i didn't say anything 'cause i don't want to bug rusty too much. :)

[ Parent ]
quickie...... (none / 0) (#2)
by joeyo on Thu Apr 06, 2000 at 09:02:39 PM EST

joeyo voted -1 on this story.

quickie...

--
"Give me enough variables to work with, and I can probably do away with the notion of human free will." -- demi

That O'Reilly-esque book cover got ... (none / 0) (#7)
by evro on Thu Apr 06, 2000 at 09:06:07 PM EST

evro voted 1 on this story.

That O'Reilly-esque book cover got my vote instantly.
---
"Asking me who to follow -- don't ask me, I don't know!"

Hang on :P ... (none / 0) (#4)
by kraant on Thu Apr 06, 2000 at 10:19:05 PM EST

kraant voted 1 on this story.

Hang on :P

This doesn't look like fuzzy logic... it looks like a joke page

Oh... hehe

Still fuzzy logic is one of my pet interests so it would have been nice to see perl functions for fuzzy logic. Tho a quick hack would probably take 6 seconds... if anyones interested I'll write up a summary on fuzzy logic and how it works *g*
--
"kraant, open source guru" -- tumeric
Never In Our Names...

I'm interested (was: Re: Hang on :P...) (none / 0) (#14)
by jherazob on Fri Apr 07, 2000 at 12:12:57 PM EST

I'm interested. I've seen this for years, but never taken it seriously (well, for me true and false are enough almost every time :)

A quick summary would be nice

[ Parent ]
Re: I'm interested (was: Re: Hang on :P...) (1.00 / 1) (#18)
by ramses0 on Sat Apr 08, 2000 at 10:47:59 AM EST

I've hung out in the comp.ai.games for a while, and feel thus somewhat qualified to summarize fuzzy logic.

Instead of "yes" or "no", being the only choices to describe something, you have a "percentage chance of this being the case".

The easiest to understand example is with a boolean variable called "is_tall". I'm 6'2", so with standard boolean logic, "is_tall = TRUE;" is what you would type.

Under fuzzy logic, you'd probably say... "fl_is_true = 90%;", which basically says: "90% of the time, yes, this person is tall".

So fuzzy logic mean: "assigning probabilities to an event", and when you finally try to evaluate a fuzzy-logic statement, all of the probabilities collapse to give you a "true" or a "false"

Another example:
if( fl_is_tall ) {
print "I think you're tall";
} else {
print "You must be standing around basketball players";
}

It is used in game AI to add some "non-determinism" to the game... I guess the theory is that every once in a while, the random "oops" (if examined logically) might give you the correct choice.

Check out question number two on this fuzzy logic faq is really interesting, and it goes over the AND/OR/NOT operators and how it affects probabilities.

And Steve Woodcock's Game AI Page is considered the #1 stopping point for AI and games. Check it out.

--Robert
[ rate all comments , for great justice | sell.com ]
[ Parent ]

I'm also interested (n/t) (none / 0) (#15)
by Emilio on Fri Apr 07, 2000 at 03:08:41 PM EST

I'm also interested (n/t)

[ Parent ]
Ayup (none / 0) (#16)
by The Big D on Sat Apr 08, 2000 at 03:01:55 AM EST

A "real" article on this would be great. I'd vote for it!
Eagles may soar, but weasels don't get sucked into jet engines
[ Parent ]
It's funny, but it's not that funny... (none / 0) (#5)
by zztzed on Thu Apr 06, 2000 at 11:15:43 PM EST

zztzed voted 0 on this story.

It's funny, but it's not that funny...

This is why we need customizable bo... (none / 0) (#8)
by fluffy grue on Fri Apr 07, 2000 at 12:47:38 AM EST

fluffy grue voted 0 on this story.

This is why we need customizable boxes on the side, so that K5 can parse RDFs like a certain other site. I found this particular feature not to be up to the Shuttlecocks' standards, though I got a kick out of the O'Reilly-style title image. :)
--
"Is not a quine" is not a quine.
I have a master's degree in science!

[ Hug Your Trikuare ]

I think I like the skim function be... (none / 0) (#6)
by skim123 on Fri Apr 07, 2000 at 02:32:13 AM EST

skim123 voted 1 on this story.

I think I like the skim function best, for obvious reasons.... :)

Money is in some respects like fire; it is a very excellent servant but a terrible master.
PT Barnum


not much discussion possible on thi... (none / 0) (#12)
by The Big D on Fri Apr 07, 2000 at 06:03:09 AM EST

The Big D voted -1 on this story.

not much discussion possible on this: it's funny but might be better suited to /.
Eagles may soar, but weasels don't get sucked into jet engines

I enjoy seeing funny stuff like thi... (none / 0) (#9)
by eann on Fri Apr 07, 2000 at 09:04:31 AM EST

eann voted 0 on this story.

I enjoy seeing funny stuff like this come across here. If it hadn't been on one of the Perl Mongers lists I'm on, I wouldn't have seen it yesterday.

On the other hand, those of us that find these things amusing really ought to be in the habit of checking in with Brunching Shuttlecocks more often anyway. I hate to continue the trend here of linking to everything they write, instead of coming up with our own humour. We should keep syndication of other sites in mind as we discuss how sections ought to work here.

Our scientific power has outrun our spiritual power. We have guided missiles and misguided men. —MLK

$email =~ s/0/o/; # The K5 cabal is out to get you.


This is hilarious!... (none / 0) (#11)
by dlc on Fri Apr 07, 2000 at 09:36:58 AM EST

dlc voted 1 on this story.

This is hilarious!

(darren)

This reminds me of INTERCAL, the la... (none / 0) (#10)
by inspire on Fri Apr 07, 2000 at 10:08:28 AM EST

inspire voted 1 on this story.

This reminds me of INTERCAL, the language designed to be Turing complete but fundamentally unlike any existing language as possible.
--
What is the helix?

Re: Fuzzy logic functions (for perl) (1.00 / 1) (#17)
by driph on Sat Apr 08, 2000 at 06:07:24 AM EST

Ya know, I think I'm starting to figure out the truth.

kuro5hin.org was built as a feeder site for the Brunching Shuttlecocks. :]

Which is fine by me. Thanks to Rusty my productivity has decreased by amazing numbers as I try to crunch through all the BS Ratings.. Freaking hilarious.

D.R.I.P.H.: Digital Robotic Individual Programmed for Harm

--
Vegas isn't a liberal stronghold. It's the place where the rich and powerful gamble away their company's pension fund and strangle call girls in their hotel rooms. - Psycho Dave
Re: Fuzzy logic functions (for perl) (none / 0) (#19)
by Anonymous Hero on Sun Apr 09, 2000 at 02:41:57 PM EST

Funny thing is, languages with backtracking can sort of behave like the decribed "reconsider" construct. For example, the language icon (which is the only one I have experience with) has a goal-based expression evaluation mechanism, meaning it will evaluate as much of an expression as it needs (with backtracking) to obtain a successful result. There is also a control construct "every" which forces a an expression to evaluate for every successful result, rather than stopping at the first success, which makes it sort of parallel to his "reconsider". Plus, since Icon functions can have side effects, the described non-deterministic nature of 'reconsider' would hold true also.

Except of course, it's not quite fuzzy: an Icon (or prolog) expression is either true or false, nothing in between. Oh well.

:)



Fuzzy logic functions (for perl) | 19 comments (19 topical, 0 editorial, 0 hidden)
Display: Sort:

kuro5hin.org

[XML]
All trademarks and copyrights on this page are owned by their respective companies. The Rest 2000 - Present Kuro5hin.org Inc.
See our legalese page for copyright policies. Please also read our Privacy Policy.
Kuro5hin.org is powered by Free Software, including Apache, Perl, and Linux, The Scoop Engine that runs this site is freely available, under the terms of the GPL.
Need some help? Email help@kuro5hin.org.
My heart's the long stairs.

Powered by Scoop create account | help/FAQ | mission | links | search | IRC | YOU choose the stories!