public class Measurer
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static Renormalizer |
NO_RENORMALIZER
Constant value meaning NO RENORMALIZATION PROCESS
|
| Constructor and Description |
|---|
Measurer()
Construct a Measurer trying native, no missing value and no renormalization without any shuffle
|
Measurer(boolean useNative,
int maxMissingValues,
Renormalizer renormalizer)
Construct a Measurer trying native without any shuffle
|
Measurer(int maxMissingValues)
Construct a Measurer trying native without any shuffle and without renormalization
|
| Modifier and Type | Method and Description |
|---|---|
static int |
fillMissing(boolean[] computable,
double[] a,
double[] b)
Fill computable array of boolean true iff a OR b contains a missing value
|
int |
getMaximumMissingValues()
Know the maximum number of missing values
|
int |
getNumberOfThreads()
Know the current number of threads to be used
|
Renormalizer |
getRenormalizer()
Retrieve the renormalizer object
|
static boolean |
hasNativeSupport()
Know if the native implementation is available
|
boolean |
isHandelingMissingValues()
Know if the measurer object must take care of missing values
|
boolean |
isUsingNative()
Know if the current measurer try to use the native implementation
|
boolean |
isUsingShuffling()
Know the shuffling usage
|
java.util.Map<Measure,double[][]> |
measure(double[][] input,
Measure[] measures)
Compute the given measures on data without ignored pairs
|
java.util.Map<Measure,double[][]> |
measure(double[][] input,
Measure[] measures,
boolean[][] measurable)
Compute the given measures on data
|
java.util.Map<Measure,double[][]> |
measure(cern.colt.matrix.DoubleMatrix2D input,
Measure[] measures)
Compute the given measures on data without ignored pairs
|
java.util.Map<Measure,double[][]> |
measure(cern.colt.matrix.DoubleMatrix2D input,
Measure[] measures,
boolean[][] measurable)
Compute the given measures on data
|
boolean |
preShuffle()
Know if the renormalizer use pre-shuffle
|
void |
setHandelingMissingValues(boolean handleMissingValues)
Define the checking of missing values
|
void |
setMaximumMissingValues(int maxMissingValues)
Define the number of maximum allowed missing values
|
void |
setNumberOfThreads(int nThreads)
Define the number of threads to be used
|
void |
setRenormalizer(Renormalizer renormalizer)
Define the renormalizer object
|
void |
useNative(boolean useNative)
Define the usage of the native implementation
|
void |
usePreShuffle(boolean shuffle)
Enable or disable pre-shuffle of data
|
void |
useShuffling(boolean useShuffling)
Change the usage of shuffle
|
public static final Renormalizer NO_RENORMALIZER
public Measurer()
public Measurer(int maxMissingValues)
maxMissingValues - The number of maximum allowed missing valuespublic Measurer(boolean useNative,
int maxMissingValues,
Renormalizer renormalizer)
useNative - Boolean to try the usage of the native implementationmaxMissingValues - The number of maximum allowed missing valuesrenormalizer - The renormalizer objectpublic void useShuffling(boolean useShuffling)
useShuffling - new shuffling usage: true for shufflingpublic boolean isUsingShuffling()
public void setNumberOfThreads(int nThreads)
nThreads - The number of thread must be > 0 (no check)public int getNumberOfThreads()
public Renormalizer getRenormalizer()
public void setRenormalizer(Renormalizer renormalizer)
renormalizer - The new renormalizer objectpublic boolean isHandelingMissingValues()
public void setHandelingMissingValues(boolean handleMissingValues)
handleMissingValues - true if the measurer must take care of missing valuespublic static final int fillMissing(boolean[] computable,
double[] a,
double[] b)
computable - The boolean arraya - The first data vectorb - The second data vectorpublic java.util.Map<Measure,double[][]> measure(cern.colt.matrix.DoubleMatrix2D input, Measure[] measures)
input - Input data (stay unchanged)measures - The given measurespublic java.util.Map<Measure,double[][]> measure(cern.colt.matrix.DoubleMatrix2D input, Measure[] measures, boolean[][] measurable)
input - Input data (stay unchanged)measures - The given measuresmeasurable - The boolean array which allow the computation between data pairs data[i] ,data[j] iff measurable[i][j] (eq. measurable[j][i]) is truepublic java.util.Map<Measure,double[][]> measure(double[][] input, Measure[] measures)
input - Input data (stay unchanged)measures - The given measurespublic java.util.Map<Measure,double[][]> measure(double[][] input, Measure[] measures, boolean[][] measurable)
input - Input data (stay unchanged)measures - The given measuresmeasurable - The boolean array which allow the computation between data pairs data[i] ,data[j] iff measurable[i][j] (eq. measurable[j][i]) is truepublic boolean isUsingNative()
public void useNative(boolean useNative)
useNative - true to use the native implementationpublic void usePreShuffle(boolean shuffle)
shuffle - true to enable, false to disablepublic boolean preShuffle()
public int getMaximumMissingValues()
public void setMaximumMissingValues(int maxMissingValues)
maxMissingValues - The number of missing valuespublic static boolean hasNativeSupport()