Package org.neo4j.gds.core.utils
Class Intersections
- java.lang.Object
-
- org.neo4j.gds.core.utils.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 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 long
intersectionArraysWithLength(long[] targets1, long[] targets2, int len1, int len2)
static double
pearson(double[] vector1, double[] vector2, int len)
static double
sumSquareDelta(double[] vector1, double[] vector2, int len)
static float
sumSquareDelta(float[] vector1, float[] vector2, int len)
static double[]
sumSquareDeltas(double[] vector1, double[][] vector2, int len)
-
-
-
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)
-
intersectionArraysWithLength
public static long intersectionArraysWithLength(long[] targets1, long[] targets2, int len1, int len2)
-
intersection4
public static long intersection4(long[] targets1, long[] targets2)
-
sumSquareDelta
public static double sumSquareDelta(double[] vector1, double[] vector2, int len)
-
sumSquareDelta
public static float sumSquareDelta(float[] vector1, float[] vector2, int len)
-
sumSquareDeltas
public static double[] sumSquareDeltas(double[] vector1, double[][] vector2, int len)
-
pearson
public static double pearson(double[] vector1, double[] vector2, int len)
-
cosine
public static double cosine(double[] vector1, double[] vector2, int len)
-
cosine
public static float cosine(float[] vector1, float[] vector2, int len)
-
-