Here you can find the source of sumabs(double[] in)
public static final double sumabs(double[] in)
//package com.java2s; //License from project: Apache License public class Main { public static final float sumabs(float[] in) { float sum = 0; for (int i = 0; i < in.length; i++) { sum += Math.abs(in[i]); }/* www . jav a 2 s .co m*/ return sum; } public static final double sumabs(double[] in) { double sum = 0; for (int i = 0; i < in.length; i++) { sum += Math.abs(in[i]); } return sum; } }