| Library: | xplore |
| See also: | sort fivenum |
| Macro: | quantile | |
| Description: | Computes the empirical quantiles of a given array. |
| Usage: | s = quantile (x, a) | |
| Input: | ||
| x | array | |
| a | level for the quantiles (has to be in [0,1]) | |
| Output: | ||
| s | for each column in x the empirical quantiles | |
library("xplore")
randomize (0)
x = normal (200, 2, 2)
quantile (x, #(0, 0.5, 1))
Contents of q [,,1,1,1,1,1,1] [1,] -2.7802 -3.0646 [2,] -0.064325 -0.041017 [3,] 2.4442 2.5595 [,,2,1,1,1,1,1] [1,] -2.7564 -2.7252 [2,] 0.051381 0.18606 [3,] 1.9993 4.2496
| Library: | xplore |
| See also: | sort fivenum |