|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.ac.ulb.mlg.utils.Measurer
public class Measurer
| Field Summary | |
|---|---|
static Renormalizer |
NO_RENORMALIZER
Constant value meaning NO RENORMALIZATION PROCESS |
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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 |
Map<Measure,double[][]> |
measure(double[][] input,
Measure[] measures)
Compute the given measures on data without ignored pairs |
Map<Measure,double[][]> |
measure(double[][] input,
Measure[] measures,
boolean[][] measurable)
Compute the given measures on data |
Map<Measure,double[][]> |
measure(cern.colt.matrix.DoubleMatrix2D input,
Measure[] measures)
Compute the given measures on data without ignored pairs |
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 |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Renormalizer NO_RENORMALIZER
| Constructor Detail |
|---|
public Measurer()
public Measurer(int maxMissingValues)
maxMissingValues - The number of maximum allowed missing values
public 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 object| Method Detail |
|---|
public 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 values
public static final int fillMissing(boolean[] computable,
double[] a,
double[] b)
computable - The boolean arraya - The first data vectorb - The second data vector
public Map<Measure,double[][]> measure(cern.colt.matrix.DoubleMatrix2D input,
Measure[] measures)
input - Input data (stay unchanged)measures - The given measures
public 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 true
public Map<Measure,double[][]> measure(double[][] input,
Measure[] measures)
input - Input data (stay unchanged)measures - The given measures
public 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 true
public 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||