Constructor | Description |
---|---|
Correlation() |
Modifier and Type | Method | Description |
---|---|---|
double[][] |
calculate(byte[][] data) |
Calculates correlations between all pairs of arrays
|
abstract double |
calculate(byte[] d1,
byte[] d2) |
Calculates the correlation between two arrays
|
java.util.Map<java.lang.Integer,int[]> |
limitedtopn(byte[][] data,
int n,
java.util.Set<java.lang.Integer> list) |
Similar to topn except it only considers the given arrays
|
java.util.Map<java.lang.Integer,double[]> |
limitedtopnvalues(byte[][] data,
int n,
java.util.Set<java.lang.Integer> list) |
Similar to limitedtopn except it returns correlations
|
java.util.Map<java.lang.Integer,int[]> |
topn(byte[][] data,
int n) |
Returns the position of the most correlated arrays for every array.
|
java.util.Map<java.lang.Integer,double[]> |
topnvalues(byte[][] data,
int n) |
Similar to topn except it returns the correlations rather than the
positions
|
public double[][] calculate(byte[][] data)
data
- The datapublic java.util.Map<java.lang.Integer,int[]> topn(byte[][] data, int n)
data
- The datan
- Return this number of top correlated arrayspublic java.util.Map<java.lang.Integer,double[]> topnvalues(byte[][] data, int n)
data
- The datan
- Return this number of top correlated arrayspublic java.util.Map<java.lang.Integer,int[]> limitedtopn(byte[][] data, int n, java.util.Set<java.lang.Integer> list)
data
- The datan
- Return this number of top correlated arrayslist
- The position of the arrays to considerpublic java.util.Map<java.lang.Integer,double[]> limitedtopnvalues(byte[][] data, int n, java.util.Set<java.lang.Integer> list)
data
- The datan
- Return this number of top correlated arrayslist
- The position of the arrays to considerpublic abstract double calculate(byte[] d1, byte[] d2)
d1
- The first arrayd2
- The second array