Package Similarity

Class CalculatedSimilar

  • All Implemented Interfaces:
    Similar

    public class CalculatedSimilar
    extends java.lang.Object
    implements Similar
    Calculates the most similar sites to a site when needed (with a cache of the last site calculated)
    • 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

      • CalculatedSimilar

        public CalculatedSimilar​(Correlation corr,
                                 byte[][] data,
                                 int n)
        Constructor
        Parameters:
        corr - Method used to calculate correlation
        data - The genotype data
        n - The number of top hits to calculate
    • 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