PHP-Science/PageRank

View on GitHub
src/Service/PageRankAlgorithm/NormalizerInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace PhpScience\PageRank\Service\PageRankAlgorithm;

use PhpScience\PageRank\Data\NodeCollectionInterface;

interface NormalizerInterface
{
    /**
     * It normalizes and scales the ranks in the node collection.
     *
     * @param NodeCollectionInterface $nodeCollection
     * @param float                   $lowestRank
     * @param float                   $highestRank
     */
    public function normalize(
        NodeCollectionInterface $nodeCollection,
        float $lowestRank,
        float $highestRank
    ): void;
}