Package Similarity

Class StoredSimilar

  • All Implemented Interfaces:
    Similar

    public class StoredSimilar
    extends java.lang.Object
    implements Similar
    Stores the sites most similar to a site for all sites
    • Constructor Summary

      Constructors 
      Constructor Description
      StoredSimilar​(java.util.Map<java.lang.Integer,​java.util.List<java.lang.Integer>> topn)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer[] getSimilar​(int p)
      Get an array of most similar sites for the given site
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StoredSimilar

        public StoredSimilar​(java.util.Map<java.lang.Integer,​java.util.List<java.lang.Integer>> topn)
        Constructor
        Parameters:
        topn - Pre-calculated top similar sites for each site (map from site to list of top similar sites)
    • Method Detail

      • getSimilar

        public java.lang.Integer[] getSimilar​(int p)
        Description copied from interface: Similar
        Get an array of most similar sites for the given site
        Specified by:
        getSimilar in interface Similar
        Parameters:
        p - The given site id
        Returns:
        The ids of the most similar sites