Java Array Divide divideArray(float[] array, float num)

Here you can find the source of divideArray(float[] array, float num)

Description

divide Array

License

Open Source License

Parameter

Parameter Description
array the to divide array
num the denominator

Return

the divided array

Declaration

public static float[] divideArray(float[] array, float num) 

Method Source Code

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

public class Main {
    /**//from w w w .ja  v a2  s. c  om
     * @param array the to divide array
     * @param num   the denominator
     * @return the divided array
     */
    public static float[] divideArray(float[] array, float num) {
        float[] result = new float[array.length];
        for (int i = 0; i < array.length; i++)
            result[i] = array[i] / num;
        return result;
    }
}

Related

  1. divide(float[][][][] img, float val)
  2. divide(int[] array1, int[] array2)
  3. divide(long[] array, double value)
  4. divideAbsolute(double[] one, double[] two)
  5. divideAndConquer(int[] array, int num)
  6. divideArray(T[] arr, Integer... cuts)
  7. divideArrayElements(final int[] array, final int divisor)
  8. divideBytearrays(byte[] ret, int headerLength, byte[] bArr)
  9. divideByteArrayToChunks(byte data[], int chunkSize)