spacepy.poppy.value_percentile

spacepy.poppy.value_percentile(sequence, target)[source]

Find the percentile of a particular value in a sequence

Parameters
sequencesequence

a sequence of values, sorted in ascending order

targetsame type as sequence

a target value

Returns
outfloat

the percentile of target in sequence