根据Plotting CCDF of walk durations,我生成了这样的 ccdf 图:
ccdf<-function(views,density=FALSE)
{
freq = table(views)
X = rev(as.numeric(names(freq)))
Y =cumsum(rev(as.list(freq)));
data.frame(x=X,count=Y)
}
library(ggplot2)
qplot(x,count,data=ccdf(views),log='xy')
Y 轴 = x 值的计数,但我想得到 Y = P[X >= x],我该怎么做?