percentile和quantile的区别是什么

我看下来好像没有区别,就是传入的参数是0.25和25的区别,对吗?

请先 登录 后评论

1 个回答

wale

quantile的详细说明参阅quantile — DolphinDB 2.0 documentation ,percentile的详细说明参阅percentile — DolphinDB 2.0 documentation 。两者基本一样,区别在与percentile传入的是百分位数,quantile传入的是小数,例如下面的percentile(a,50)与quantile(a, 0.50)计算的结果一样:

a=[6, 47, 49, 15, 42, 41, 7, 39, 43, 40, 36];
percentile(a,50) //计算结果是40
quantile(a, 0.50)//计算结果也是40
请先 登录 后评论
  • 1 关注
  • 0 收藏,579 浏览
  • Boye 提出于 2023-06-21 13:41

相似问题