LanguageDetector\Sort\PageRank::hasConverge PHP Method

hasConverge() protected method

hasConverge {{{
protected hasConverge ( array $old, array $newValues )
$old array
$newValues array
    protected function hasConverge(array $old, array $newValues)
    {
        $total = count($newValues);
        $diff = $this->subs($newValues, $old);
        $done = sqrt($this->mult($diff, $diff)) / $total < $this->convergence;
        return $done;
    }