interquartileRange(A)

Computes the interquartile range of array A.

interquartileRange(M)

Returns an array with the interquartile range of each column of matrix M.


See also frequencies 


Example


A=(1,2,2,2,3,3,4,4,5,5,5,5,6,6,7,9)

( 1 2 2 2 3 3 4 4 5 5 5 5 6 6 7 9 )

interquartileRange(A)

3.5

M=randommatrix(10,4,99)

/ 30 58 52  1 \

| 61 92 89 64 |

| 57  6 45 63 |

| 86  8 29 60 |

|  4 87  0 63 |

|  8 94 82 35 |

| 57 95 80 52 |

| 89 61 81 94 |

| 49 29  1 65 |

\ 62 79 74 74 /

interquartileRange(M)

( 43.5 68.75 59.25 19.5 )