Here you can find the source of normBySortedPointersInverse(double[] d, int[] pointers)
public static void normBySortedPointersInverse(double[] d, int[] pointers)
//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); } }