for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
Part of BORDA COUNT method Module - From the original Condorcet PHP
Condorcet PHP - Election manager and results calculator.
Designed for the Condorcet method. Integrating a large number of algorithms extending Condorcet. Expandable for all types of voting systems.
By Julien Boudry and contributors - MIT LICENSE (Please read LICENSE.txt)
https://github.com/julien-boudry/Condorcet
*/
declare(strict_types=1);
namespace Condorcet\Algo\Methods;
use Condorcet\Algo\Method;
use Condorcet\Algo\MethodInterface;
use Condorcet\Result;
class DowdallSystem extends BordaCount
{
// Method Name
public const METHOD_NAME = ['DowdallSystem','Dowdall System','Nauru', 'Borda Nauru'];
protected function getScoreByCandidateRanking (int $CandidatesRanked) : float
return (float) 1 / ($CandidatesRanked + 1);
}