Linear interpolation in numpy quantile()
Linear interpolation in numpy quantile() Question: Consider the following code: >>> import numpy as np >>> l = [21,22,24,24,26,97] >>> np.quantile(l, 0.25) 22.5 The documentation says: linear: i + (j – i) * fraction, where fraction is the fractional part of the index surrounded by i and j. Could anyone please explain what are i, …
Total answers: 2