array.percentile_linear_interpolation() - Pine Script Function
array.percentile_linear_interpolation()
Section titled “array.percentile_linear_interpolation()”Overview
Section titled “Overview”Returns the value for which the specified percentage of array values (percentile) are less than or equal to it, using linear interpolation.
Syntax
Section titled “Syntax”array.percentile_linear_interpolation(id, percentage) → series floatParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| id | array<int/float> | An array object. |
Remarks
Section titled “Remarks”- In statistics, the percentile is the percent of ranking items that appear at or below a certain score. This measurement shows the percentage of scores within a standard frequency distribution that is lower than the percentile rank being measured. Linear interpolation estimates the value between two ranks.