[PageOneX] [dev] Calculating percentage across all newspapers

pablo rey pablo at basurama.org
Wed Mar 27 15:28:58 EDT 2013


To avoid that larger newspaper will be weighted heavily is by working
exclusively with percentages.
Making the average of the percentages is the next step to have a total
percentage for a particular day.

I see:

For a single newspaper a particular day:
percentage of coverage in newspaper in a particular day = number of
highlighted pixels /  number of pixels of that image

For a day:
percentage of coverage for a day = sum(percentage of coverage in newspaper
in a particular day) /  available number of newspapers that day




On Wed, Mar 27, 2013 at 3:16 PM, Edward Platt <elplatt at media.mit.edu> wrote:

> Hi All,
>
> I'm working on fixing the percentages for days when not all newspapers are
> published.  This has led me to wonder about the best way to calculate the
> total percentage.
>
> The current approach is to divide the total number of highlighted pixels
> by the total number of pixels.  I see two possible problems with this:
> 1. Larger format newspapers will be weighted heavily.
> 2. If papers are scanned at different resolutions, the weighting of each
> newspaper will depend on its resolution.
>
> 1. seems potentially OK, but 2. seems bad.  Is there a standard method for
> calculating attention across newspapers with different physical sizes?
>
> -Ed
>
> --
> Edward L. Platt
> Civic Technology Programmer
> MIT Center for Civic Media
> E15-348
> http://civic.mit.edu
> http://elplatt.com
> @EdwardLPlatt <http://twitter.com/edwardlplatt>
>
> _______________________________________________
> Pageonexdev mailing list
> Pageonexdev at mit.edu
> http://mailman.mit.edu/mailman/listinfo/pageonexdev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/pageonexdev/attachments/20130327/9848a40a/attachment.htm


More information about the Pageonexdev mailing list