Here you can find the source of absMean(double[] arr)
Parameter | Description |
---|---|
signal | a parameter |
public static double absMean(double[] arr)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from www. ja va2 s .co m*/ * absMean * * @param signal * @return */ public static double absMean(double[] arr) { double result = 0; double len = arr.length; for (int i = 0; i < arr.length; i++) { double val = Math.abs(arr[i]); result += val / len; } return result; } }