Here you can find the source of maxAbs(float[] a, int off, int length)
public static float maxAbs(float[] a, int off, int length)
//package com.java2s; /*//from w w w .ja va2 s. co m * Util.java * (FScape) * * Copyright (c) 2001-2015 Hanns Holger Rutz. All rights reserved. * * This software is published under the GNU General Public License v3+ * * * For further information, please contact Hanns Holger Rutz at * contact@sciss.de * * * Changelog: * 17-Jun-07 extended */ public class Main { public static float maxAbs(float[] a, int off, int length) { final int stop = off + length; float f1 = 0f, f2; while (off < stop) { f2 = Math.abs(a[off++]); if (f2 > f1) f1 = f2; } return f1; } public static float maxAbs(float[][] a, int off, int length) { final int stop = off + length; float f1 = 0f, f2; float[] b; for (int i = 0; i < a.length; i++) { b = a[i]; for (int j = off; j < stop; j++) { f2 = Math.abs(b[j]); if (f2 > f1) f1 = f2; } } return f1; } }