Java Array Normalize normBySortedPointersInverse(double[] d, int[] pointers)

Here you can find the source of normBySortedPointersInverse(double[] d, int[] pointers)

Description

Example: normBySortedPointers data in arbitrary range, run neuralnet on it, then normBySortedPointersInverse to put neuralnet's output back into that same spread of data but a different permutation of it.

License

Open Source License

Declaration

public static void normBySortedPointersInverse(double[] d, int[] pointers) 

Method Source Code

//package com.java2s;
/** Ben F Rayfield offers this software opensource MIT license */

public class Main {
    /** Example: normBySortedPointers data in arbitrary range, run neuralnet on it,
    then normBySortedPointersInverse to put neuralnet's output back into that same spread of data
    but a different permutation of it./*  w  ww  .j  a va  2  s.com*/
    */
    public static void normBySortedPointersInverse(double[] d, int[] pointers) {
        double[] inverse = new double[d.length];
        for (int i = 0; i < d.length; i++) {
            inverse[i] = d[pointers[i]];
        }
        System.arraycopy(inverse, 0, d, 0, d.length);
    }
}

Related

  1. normalizeVectorMaxMin(float[] samples)
  2. normalizeVectors(float[][] vectors, boolean maxMin)
  3. normalizeVoxelDimensions(final double[] voxelDimensions)
  4. normalizeWith(double[] arr, double v)
  5. normalizeZscore(double[] x)
  6. normData(double[] data)
  7. normII(double[] b)
  8. normLat(double[] latLng)
  9. normLng(double[] latLng)