Is there a built-in function that finds the percentile of a number in a vector?
(Deleted because I misunderstood the question)
I think you want something like the
percentile function in StatsBase.jl? (Most of the statistics functions in Julia are in packages.)
Or do you want something like
percent(x, v) = 100 * count(<(x), v) / length(v), i.e. the percent of elements of
v that are
6 posts were split to a new topic: Opposite of StatsBase.percentile