Coder Profile - Show off your skills, get a coder profile.
 
 
 
Please login to rate source codes.

Click here to register a free account with us.
Language Posted Comments
PHP (Hypertext Preprocessor) 2.58 Years Ago 2
Rating Downloadable Plain Text
0.00 - - - 4,222 Chrs
Total Ratings Views Screenshot
0 795 - - -

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
More PHP (Hypertext Preprocessor) Source Codes By VBAssassin
Please login to post comments.
 
VBAssassin     Posted 2.57 Years 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 2.57 Years 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
Scott Thompson (24)
United Kingdom, Lincolnshire
VBAssassin has 32 fans
become a fan
� Applications
Articles Articles (13)
Source Codes Source Codes (61)
� About Me
About Me About Me
User Groups User Groups (9)
Portfolio Portfolio (8)
Friends Friends (178)
� Misc
Overview Overview
Send A Friend Invite
Send Message Send A Message
RSS Whole Profile Feed
 
 
Latest News About Coder Profile
Coder Profile Poll
Which sounds better on your coder profiles, and makes more sense to you (think twitter, facebook, etc)?

Followers / Following
Fans / Following
Fans / Fan Of


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