Java Array Min Value min(float[] array, float min)

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

Description

min

License

Open Source License

Declaration

public static float[] min(float[] array, float min) 

Method Source Code

//package com.java2s;
/*// w  ww.  j a  v a  2  s  .c  o  m
 * Copyright (C) 2010-2014  Andreas Maier
 * CONRAD is developed as an Open Source project under the GNU General Public License (GPL).
*/

public class Main {
    public static float[] min(float[] array, float min) {
        for (int i = 0; i < array.length; i++) {
            array[i] = Math.min(array[i], min);
        }
        return array;
    }
}

Related

  1. min(float a[][][])
  2. min(float... fs)
  3. min(float... values)
  4. min(float... values)
  5. min(float[] array)
  6. min(float[] floats)
  7. min(float[] ids)
  8. min(float[] in, int[] idx)
  9. min(float[] numbers)