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; }