LT Ratings Details Script

DiscussãoHacking LibraryThing

Aderi ao LibraryThing para poder publicar.

LT Ratings Details Script

Este tópico está presentemente marcado como "adormecido"—a última mensagem tem mais de 90 dias. Pode acordar o tópico publicando uma resposta.

Mar 8, 2012, 10:51pm

Adds Median, Mode(adj) and Members lines to the green Ratings box on work pages.

Median is the "middle" value in the set of ratings. If there are two middle value, the mean of these two values is taken.

Mode(adj) is a the most often used rating or ratings. Here it is computed in a somewhat unscientific way, but I think it works out for the best for something like this. Half-stars are kind of funky since most people don't use them (either because they don't like them or they don't realize they even exist). But they wreak havoc with a mode calculation. So I'm making an adjustment that gets rid of them for the mode by giving half of them to the score below and half to the score above. For a single half-star, it only gives half the users to the score above and dumps the other half since there is no such thing as a zero star rating. For a multi-modal result, it displays the star graphic for the first mode and lists the values in square brackets.

Members is the number of members that have ratings for this work.

Editado: Mar 9, 2012, 11:36am

Hello Brightcopy

Thanks for your script. I have been looking for stats like this for a long time.

Could you please explain me Median.
As I understood your example, there is a list with 9 items (1 star to 5 stars). So I was expecting the median value as 3.
4 values below and 4 values over the middle value of the list.

Could you please explain.

Mar 9, 2012, 9:18am

There are 322 ratings below 4.5, 49 at 4.5, and 294 above, so the median is in the 4.5 bucket

Mar 9, 2012, 10:06am

>3 TimSharrock:

Thank you. Now I got it.
Oops. It's the point of view.

Mar 9, 2012, 11:16am

> 1. brightcopy : Nice feature ! Thanks.