Coder Profile - Show off your skills, get a coder profile.
 
 
 
The Author
VBAssassin
Scott Thompson
Send A Message
Rating
Not
Rated
Please login to rate source codes.

Click here to register a free account with us.
General Details
PHP (Hypertext Preprocess...
Posted 330 Days Ago
284 Views
Received 0 Ratings
More Codes By This Author
Pick A Random Array Eleme...
Bitwise Settings (Class)...
Compare Ratings, and Retu...
Settings Class
Dynamic Parameters (Using...
Articles By This Author
[PHP] - Lets kill the com...
How to use Memcache on Wi...
PHP Sessions = Member Dat...
Speed Up Delivery of your...
AJAX - When to use it?

Compare Ratings, and Return Similar Tastes


Description
Lets say you have 5 books... and 5 people rate each of those books. Now you want to find out who's interests, based on each users 5 ratings, are similar to who?

That's what this algorithm calculates.
Technical
Similar to the Euclidean algorithm, or as though i have been told.
Source Code
Comments
Please login to post comments.
 
VBAssassin     Posted 326 Days Ago
 
 
Hi ya gunni,

It's nice to get a comment saying "Very nice code! Very readable."
after 4 months of not writing much advanced code (taking it easy cus of my hands
problem). So hey, not lost the ability to code... yet!!! lol

I actually didn't know about the abs function... not so sure why i didn't
use array_slice though, sure there was a reason at the time :-S fortunately
can't remember now though.

Thanks for taking the time to comment.

Kind regards,
Scott
 
gunni     Posted 326 Days Ago
 
 
Very nice code! Very readable.

Your function get_matches should have used array_slice (
[url]http://www.php.net/manual/de/function.array-slice.php[/url] ), though.

And get_difference should have used abs() as discussed in the forum ;)
Page 1 of 1
More "PHP (Hypertext Preprocessor)" Source Codes By This Author
Recently Posted "PHP (Hypertext Preprocessor)" Source Codes
Recently Rated "PHP (Hypertext Preprocessor)" Source Codes
 
 
Latest News About Coder Profile
Coder Profile Poll
Why do you get bored with programming?

Not enough time to do something productive
I run out of ideas
Too hard to show people my creations
Everything i do has too many errors, and it's too hard
I don't get bored!!!


please login to cast your vote
and see the results of this poll
Latest Coder Profile Changes
Coder Profile was last updated
1.28 Year Ago
Official Blog :: Make A Donation :: Credits :: Contact Me
Terms & Conditions :: Privacy Policy :: Documents :: Wallpapers
Version 1.46.00
Copyright © 2007 - 2010, Scott Thompson, All Rights Reserved