Class Intersections


  • public final class Intersections
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Intersections()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static double cosine​(double[] vector1, double[] vector2, int len)  
      static float cosine​(float[] vector1, float[] vector2, int len)  
      static double cosineSkip​(double[] vector1, double[] vector2, int len, double skipValue)  
      static long intersection​(com.carrotsearch.hppc.LongHashSet targets1, com.carrotsearch.hppc.LongHashSet targets2)  
      static long intersection2​(long[] targets1, long[] targets2)  
      static long intersection3​(long[] targets1, long[] targets2)  
      static long intersection4​(long[] targets1, long[] targets2)  
      static double pearson​(double[] vector1, double[] vector2, int len)  
      static double pearsonSkip​(double[] vector1, double[] vector2, int len, double skipValue)  
      static boolean shouldSkip​(double propertyValue, double skipValue)  
      static double sumSquareDelta​(double[] vector1, double[] vector2, int len)  
      static double[] sumSquareDeltas​(double[] vector1, double[][] vector2, int len)  
      static double sumSquareDeltaSkip​(double[] vector1, double[] vector2, int len, double skipValue)  
      • Methods inherited from class java.lang.Object

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

      • Intersections

        public Intersections()
    • Method Detail

      • intersection

        public static long intersection​(com.carrotsearch.hppc.LongHashSet targets1,
                                        com.carrotsearch.hppc.LongHashSet targets2)
      • intersection2

        public static long intersection2​(long[] targets1,
                                         long[] targets2)
      • intersection3

        public static long intersection3​(long[] targets1,
                                         long[] targets2)
      • intersection4

        public static long intersection4​(long[] targets1,
                                         long[] targets2)
      • sumSquareDeltaSkip

        public static double sumSquareDeltaSkip​(double[] vector1,
                                                double[] vector2,
                                                int len,
                                                double skipValue)
      • sumSquareDelta

        public static double sumSquareDelta​(double[] vector1,
                                            double[] vector2,
                                            int len)
      • sumSquareDeltas

        public static double[] sumSquareDeltas​(double[] vector1,
                                               double[][] vector2,
                                               int len)
      • cosineSkip

        public static double cosineSkip​(double[] vector1,
                                        double[] vector2,
                                        int len,
                                        double skipValue)
      • pearson

        public static double pearson​(double[] vector1,
                                     double[] vector2,
                                     int len)
      • pearsonSkip

        public static double pearsonSkip​(double[] vector1,
                                         double[] vector2,
                                         int len,
                                         double skipValue)
      • shouldSkip

        public static boolean shouldSkip​(double propertyValue,
                                         double skipValue)
      • cosine

        public static double cosine​(double[] vector1,
                                    double[] vector2,
                                    int len)
      • cosine

        public static float cosine​(float[] vector1,
                                   float[] vector2,
                                   int len)