Documentation of 'Catalano.Graph.Network.PageRank' Java class
PageRank
Catalano.Graph.Network

Class PageRank



  • public class PageRank
    extends java.lang.Object
    PageRank algorithm. PageRank is a way of measuring the importance of website pages.
    • Constructor Summary

      Constructors 
      Constructor and Description
      PageRank()
      Initialize a new instance of the PageRank class.
      PageRank(double factor)
      Initialize a new instance of the PageRank class.
    • Constructor Detail

      • PageRank

        public PageRank()
        Initialize a new instance of the PageRank class.
      • PageRank

        public PageRank(double factor)
        Initialize a new instance of the PageRank class.
        Parameters:
        factor - Damping factor.
    • Method Detail

      • getEpsilon

        public double getEpsilon()
        Get epsilon value.
        Returns:
        Epsilon value.
      • setEpsilon

        public void setEpsilon(double epsilon)
        Set epsilon value. Epsilon value, is the stop criteria.
        Parameters:
        epsilon - Epsilon value.
      • getFactor

        public double getFactor()
        Get damping factor.
        Returns:
        Damping factor.
      • setFactor

        public void setFactor(double factor)
        Set damping factor.
        Parameters:
        factor - Damping factor.
      • getNumberOfIterations

        public int getNumberOfIterations()
        Get number of iterations executed by the algorithm.
        Returns:
        Number of iterations.
      • Compute

        public double[] Compute(AdjacencyMatrix matrix)
        Compute PageRank.
        Parameters:
        matrix - Adjacency matrix.
        Returns:
        Ranks.
      • Compute

        public double[] Compute(AdjacencyMatrix matrix,
                                double[] weights)
        Compute PageRank.
        Parameters:
        matrix - Adjacency matrix.
        weights - Inital weights,
        Returns:
        Ranks.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.