percentile是啥意思

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了percentile是啥意思相关的知识,希望对你有一定的参考价值。

参考技术A percentile
英 [pə'sentaɪl]
美 [pɚ'sɛntaɪl]

n. 百分位
adj. 百分率的;按百等分排列的

[网络短语]

Percentile 百分位数,百分位,分位数
percentile rank 百分等级,百分位数,百分级数
percentile scale 百分量表

If your child is over the 85th percentile, it is important to address the problemquickly.
如果您的孩子所在位置超过85百分位,迅速解决该问题是十分重要的。

The resource-poor countries reformed their business and regulatoryenvironments and now rank
in the 63rd percentile in those areas worldwide.
资源贫乏的国家改革了他们的商业和管理环境,目前在全世界有关地区排名中列在第63个百分位。

Your child is considered overweight if he or she falls in the 85th to 94thpercentiles of the B.M.I. growth charts, and obese if he is in the 95th percentile orhigher.
如果您的孩子在体重指数增长表中属于第85至第94百分位,她(她)将会被认为是超重的;如果他(她)位于95百分位或者更高,她(她)将会被认为是肥胖。

Percentile_Cont 函数抛出错误

【中文标题】Percentile_Cont 函数抛出错误【英文标题】:Percentile_Cont function throwing error 【发布时间】:2016-06-08 04:27:05 【问题描述】:

我有这个查询,我试图在 PERCENTILE_CONT 中引入一个非静态值:

SELECT perf2.REVIEW_PERIOD
     , PERCENTILE_CONT(goalsASP.GOAL*.01) WITHIN GROUP (ORDER BY AVG_AMT ASC) ast75 
FROM repDB.TBL_PERFORMANCE perf2 JOIN
      pz.CATEGORY C on perf2.DEPTCAT = C.id JOIN
      repDB.TBL_GOALS_MATRIX goalsASP ON C.NAME = goalsASP.DIMENSION_Y
                                       and perf2.REVIEW_PERIOD = goalsASP.SNAP_NAME 
                                       and goalsASP.DIMENSION_X = 'asp'
GROUP BY perf2.REVIEW_PERIOD

抛出的错误是:

ORA-30497: Argument should be a constant or a function of expressions in GROUP BY. 30497. 00000 - "Argument should be a constant or a function of expressions in GROUP BY."

这是在一个视图中,当 goalsASP.GOAL*.01.75 时它工作正常,并且我有一个存储过程,其中将列作为参数输入工作得很好,所以我有点不知所措我在这里做错了。

【问题讨论】:

【参考方案1】:

知道了。与其说是 Percentile_Cont 的问题,不如说是正确分组的问题。

为了解决问题,我隔离了goalsASP.GOAL

SELECT perf2.REVIEW_PERIOD
     , goalsASP.GOAL
FROM repDB.TBL_PERFORMANCE perf2 JOIN
      pz.CATEGORY C on perf2.DEPTCAT = C.id JOIN
      repDB.TBL_GOALS_MATRIX goalsASP ON C.NAME = goalsASP.DIMENSION_Y
                                       and perf2.REVIEW_PERIOD = goalsASP.SNAP_NAME 
                                       and goalsASP.DIMENSION_X = 'asp'
GROUP BY perf2.REVIEW_PERIOD

然后很明显,我还需要按goalsASP.GOAL 分组。

那么,答案是:

SELECT perf2.REVIEW_PERIOD
     , PERCENTILE_CONT(goalsASP.GOAL*.01) WITHIN GROUP (ORDER BY AVG_AMT ASC) ast75 
FROM repDB.TBL_PERFORMANCE perf2 JOIN
      pz.CATEGORY C on perf2.DEPTCAT = C.id JOIN
      repDB.TBL_GOALS_MATRIX goalsASP ON C.NAME = goalsASP.DIMENSION_Y
                                       and perf2.REVIEW_PERIOD = goalsASP.SNAP_NAME 
                                       and goalsASP.DIMENSION_X = 'asp'
GROUP BY perf2.REVIEW_PERIOD,
         goalsASP.GOAL

有点尴尬,我以前没看到过,但是疲惫的眼睛想念这些东西。

【讨论】:

以上是关于percentile是啥意思的主要内容,如果未能解决你的问题,请参考以下文章

99th percentile 延迟和吞吐量是啥意思

SELECT TOP 100 PERCENT是啥意思

Percent和 per cent的区别是啥?

Percent和per cent的区别是啥?

性能:性能统计输出中的 [<n percent>] 记录是啥意思?

numpy.percentile