spacepy_logo

Previous topic

spacepy.poppy.boots_ci

Next topic

pycdf - Python interface to CDF files

This Page

spacepy.poppy.value_percentile

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

Find the percentile of a particular value in a sequence

Parameters:

sequence : sequence

a sequence of values, sorted in ascending order

target : same type as sequence

a target value

Returns:

out : float

the percentile of target in sequence