Java Median median(float a, float b, float c)

Here you can find the source of median(float a, float b, float c)

Description

median

License

Open Source License

Declaration

public static float median(float a, float b, float c) 

Method Source Code

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

public class Main {
    public static float median(float a, float b, float c) {
        return (a <= b) ? ((b <= c) ? b : ((a < c) ? c : a)) : ((a <= c) ? a : ((b < c) ? c : b));
    }//from   w  w w.  j a v a 2s .  co m
}

Related

  1. median(final ArrayList values)
  2. median(final double... in)
  3. median(final double... values)
  4. median(final double[] values)
  5. median(final int[] values)
  6. median(float[] vals)
  7. median(float[] values)
  8. median(float[] vector)
  9. median(int x[], int pos1, int pos2, int pos3)