Package org.neo4j.graphalgo.core.utils
Class Intersections
- java.lang.Object
-
- org.neo4j.graphalgo.core.utils.Intersections
-
public 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[]
cosines(double[] vector1, double[][] vector2, int len)
static double
cosineSquare(double[] vector1, double[] vector2, int len)
static double
cosineSquareSkip(double[] vector1, double[] vector2, int len, double skipValue)
static int[]
getIntersection(int[] values1, int[] values2)
static int[]
getIntersection(int[] values1, int len1, int[] values2, int len2)
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, boolean skipNan)
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)
-
-
-
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)
-
getIntersection
public static int[] getIntersection(int[] values1, int[] values2)
-
getIntersection
public static int[] getIntersection(int[] values1, int len1, int[] values2, int len2)
-
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)
-
cosineSquare
public static double cosineSquare(double[] vector1, double[] vector2, int len)
-
cosineSquareSkip
public static double cosineSquareSkip(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, boolean skipNan)
-
cosine
public static double cosine(double[] vector1, double[] vector2, int len)
-
cosines
public static double[] cosines(double[] vector1, double[][] vector2, int len)
-
cosine
public static float cosine(float[] vector1, float[] vector2, int len)
-
-