Skip to main content

stats_quantile

Function stats_quantile 

Source
pub fn stats_quantile(data_json: String, q: f64) -> String
Expand description

Computes a quantile of a JSON array of f64 values.

§Arguments

  • data_json - JSON string representing an array of f64 values
  • q - Quantile to calculate (0.0 to 1.0)

§Returns

JSON string with the quantile value, or “null” if input is invalid