PHP Classes
Icontem

Class: Calculadora Escons


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Manel Zaera  >  Calculadora Escons  >  Download  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Calculadora Escons Support forum
Base name: calculadoraescons
Description: Calculate elected seats using D'Hondt method
Related top rated classes: ,
Version: 1.1
Required PHP version: 5.0
License: GNU General Public License (GPL)
All time users: 160 users
All time rank: 4864
Week users: 0 users
Week rank: 3327
 
  Author   Group folder image Groups   Detailed description  
  Rate classes User ratings   Applications   Files Files  

Author

Picture of Manel Zaera
Name: Manel Zaera <e-mail contact>
Published packages: 3 Browse this author's classes Browse this author's classes
Country: Spain Spain - PHP jobs in Spain
Home page: http://manelzaera.blogspot.com/
Age: 35
All time rank: 1775
Week rank: 1323

Innovation Award

PHP Programming Innovation award nominee
June 2007
Number 10
The D'Hondt method is used in many countries to calculate the number of seats assigned to a party, depending on the percentage of votes that they get in elections.

This class provides an implementation of the D'Hondt method. It can be used by PHP sites that want to show on the Web the partial or final results of elections that take place on countries that use this method of assigning elected seats.

Manuel Lemos

Groups

Group folder image Algorithms Numerical and statistical algorithms View top rated classes

Detailed description

This class can be used to calculate the number of seats assigned to a party upon election results using the D'Hondt method.

It takes as parameters the number of available seats and an associative array that relates each party with the votes they received.

The class distributes the available seats using the D'Hondt method and returns an associative arrays that relates each party with the number of assigned seats that they got.

The code and the comments are in Catalan.

User ratings

There are not enough user ratings to display for this class.

Applications that use this class

No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.

Files

File Role Description
Plain text file CalculadoraEscons.php Class Class CalculdoraEscons
Plain text file exemple.php Example Sample file
Plain text file README Doc. README
Download all files: calculadoraescons.tar.gz calculadoraescons.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products