Re: [Banshee-List] Automatic Rating
- From: "Gabriel Burt" <gabriel burt gmail com>
- To: banshee-list gnome org
- Subject: Re: [Banshee-List] Automatic Rating
- Date: Fri, 3 Oct 2008 14:15:46 -0500
On Fri, Oct 3, 2008 at 2:02 PM, Brian Lucas <bcl1713 gmail com> wrote:
> I would like to do some work or help with work on an extension regarding
> this bug: http://bugzilla.gnome.org/show_bug.cgi?id=419844. I really like
> the algorithm that Amarok uses for this purpose but I'm not sure if it will
> be implementable in banshee as I'm not sure if the required information is
> retained or available upon track change. Here is the algorithm from Amarok
> in ruby:
>
> if( playcount <= 0 ) # not supposed to be less, but what the hell.
> newscore = ( prevscore + percentage ) / 2
> else
> newscore = ( ( prevscore * playcount ) + percentage ) / ( playcount + 1
> )
> end
Where does prevscore get initialized? Is it initialized to zero?
What is percentage? Can you explain the logic of the algorithm in
English? Looking at the code, I don't quite get why things are the
way they are.
Thanks,
Gabriel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]