Files
mql5-skills/skills/mql5/references/docs/34-standardlibrary/1363-standardlibrary-mathematics-stat-mathsubfunctions-statmathquantile.md
T
2026-06-23 21:47:51 +08:00

31 lines
592 B
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# MathQuantile
Calculates sample quantiles corresponding to the specified probabilities: Q[i](p) = (1 - gamma)*x[j] + gamma*x[j+1]
```
bool  MathQuantile(
   const double&  array[],     // array of values
   const double&  probs[],     // array of probabilities
   double&        quantile[]   // array to output the quantiles
   )
```
Parameters
array[]
[in] Array of values.
probs[]
[in] Array of probabilities.
quantile[]
[out] Array to output the quantiles.
Return Value
Returns true if successful, otherwise false.