public interface Renormalizer<RenormalizerState>
| Modifier and Type | Method and Description |
|---|---|
RenormalizerState |
cloneState()
Avoid concurrent modification and inconsistent results when multi-threading is enabled.
|
boolean |
hasNativeImplementation()
Know if the current renormalizer owns a native implementation
|
double[][] |
normalizeInput(double[][] input)
Apply the normalization process on the given vector of data vectors
|
double[][] |
normalizeOutput(double[][] input,
double[][] output,
Measure measure)
Apply the normalization process on the given vector of data vectors and result measures
|
boolean |
processInput()
Know if the renormalizer can handle input (call normalizeInput has effect)
|
boolean |
processOutput()
Know if the renormalizer can handle output (call normalizeOutput has effect)
|
boolean |
shufflePair()
Know if the measurer use pre-shuffle
|
void |
simulateRenormalization(RenormalizerState state,
double[] shuffledFirst,
double[] shuffledSecond,
int first,
int second)
Method called when pairwise renormalization is used in order to obtain a normalized version of the shuffled vector as if it was in the original input matrix
|
void |
updateRenormalization(RenormalizerState state,
double[] vect,
int index,
boolean ignore)
Method called when pairwise renormalization is used in order to ignore or not a row from the original input matrix
|
double[][] normalizeInput(double[][] input)
input - The given vector of data vectorsdouble[][] normalizeOutput(double[][] input,
double[][] output,
Measure measure)
input - The given vector of data vectorsoutput - The result vector (measures of data vectors)measure - The corresponding measureboolean hasNativeImplementation()
boolean processInput()
boolean processOutput()
boolean shufflePair()
void simulateRenormalization(RenormalizerState state, double[] shuffledFirst, double[] shuffledSecond, int first, int second)
state - The state on which modifications will be appliedshuffledFirst - The first vector of the pairwise comparison (shuffled version)shuffledSecond - The second vector of the pairwise comparison (shuffled version)first - The index of the first vector from the original input matrixsecond - The index of the second vector from the original input matrixvoid updateRenormalization(RenormalizerState state, double[] vect, int index, boolean ignore)
state - The state on which modifications will be appliedvect - A vector which is considerate as a row from the original input matrix corresponding to the row at the given indexindex - The index of the vector to map it into the original matrix at this indexignore - A boolean to tell if the values of the vector must be ignored (typically remove these values from the normalization process as if it was the row "index" from the original input matrix) with the true value (typically false to add it into renormalization)RenormalizerState cloneState()