public abstract class AbstractDependenceMeasure extends java.lang.Object implements DependenceMeasure
Constructor and Description |
---|
AbstractDependenceMeasure() |
Modifier and Type | Method and Description |
---|---|
protected static double |
clamp(double value,
double min,
double max)
Clamp values to a given minimum and maximum.
|
protected static <A> double[] |
computeNormalizedRanks(NumberArrayAdapter<?,A> adapter,
A data,
int len)
Compute ranks of all objects, normalized to [0;1]
(where 0 is the smallest value, 1 is the largest).
|
protected static <A> int[] |
discretize(NumberArrayAdapter<?,A> adapter,
A data,
int len,
int bins)
Discretize a data set into equi-width bin numbers.
|
protected static int |
index(int x,
int y)
Index into the serialized array.
|
protected static <A> double[] |
ranks(NumberArrayAdapter<?,A> adapter,
A data,
int len)
Compute ranks of all objects, ranging from 1 to len.
|
protected static <A> double[] |
ranks(NumberArrayAdapter<?,A> adapter,
A data,
int[] idx)
Compute ranks of all objects, ranging from 1 to len.
|
protected static <A,B> int |
size(NumberArrayAdapter<?,A> adapter1,
A data1,
NumberArrayAdapter<?,B> adapter2,
B data2)
Validate the length of the two data sets (must be the same, and non-zero)
|
protected static <A> int |
size(NumberArrayAdapter<?,A> adapter,
java.util.Collection<? extends A> data)
Validate the length of the two data sets (must be the same, and non-zero)
|
protected static <A> int[] |
sortedIndex(NumberArrayAdapter<?,A> adapter,
A data,
int len)
Build a sorted index of objects.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dependence, dependence, dependence, dependence
protected static double clamp(double value, double min, double max)
value
- True valuemin
- Minimummax
- Maximumvalue
, unless smaller than min
or larger than
max
.protected static <A> double[] computeNormalizedRanks(NumberArrayAdapter<?,A> adapter, A data, int len)
adapter
- Data adapterdata
- Data arraylen
- Length of dataprotected static <A> double[] ranks(NumberArrayAdapter<?,A> adapter, A data, int len)
adapter
- Data adapterdata
- Data arraylen
- Length of dataprotected static <A> double[] ranks(NumberArrayAdapter<?,A> adapter, A data, int[] idx)
adapter
- Data adapterdata
- Data arrayidx
- Data indexprotected static <A> int[] sortedIndex(NumberArrayAdapter<?,A> adapter, A data, int len)
adapter
- Data adapterdata
- Data arraylen
- Length of dataprotected static <A> int[] discretize(NumberArrayAdapter<?,A> adapter, A data, int len, int bins)
adapter
- Data adapterdata
- Data arraylen
- Length of databins
- Number of binsprotected static int index(int x, int y)
x
- Columny
- Rowprotected static <A,B> int size(NumberArrayAdapter<?,A> adapter1, A data1, NumberArrayAdapter<?,B> adapter2, B data2)
A
- First array typeB
- Second array typeadapter1
- First data adapterdata1
- First data setadapter2
- Second data adapterdata2
- Second data setprotected static <A> int size(NumberArrayAdapter<?,A> adapter, java.util.Collection<? extends A> data)
A
- First array typeadapter
- Data adapterdata
- Data setsCopyright © 2019 ELKI Development Team. License information.