Java Array Average avgArrayAndDouble(double[] array, double doublevalue)

Here you can find the source of avgArrayAndDouble(double[] array, double doublevalue)

Description

avg Array And Double

License

Open Source License

Declaration

public static double[] avgArrayAndDouble(double[] array, double doublevalue) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static double[] avgArrayAndDouble(double[] array, double doublevalue) {

        double[] result = new double[array.length];
        for (int i = 0; i < array.length; i++) {
            result[i] = (array[i] + doublevalue) / 2;
        }//from w w  w .  j av  a 2  s.  c o m

        return result;
    }
}

Related

  1. avg(int[] values)
  2. avg(int[] xs)
  3. avg(int[][] values)
  4. avgarr(int[] a)
  5. avgArray(double[] values, int maxLength)
  6. avgIgnoreNaN(double[] values)
  7. avgOfArray(double[] array)
  8. avgRng(double[] high, double[] low, int days)
  9. getAverage(double[] values)