标签: r function plot
如何在R?
cdf = function(x){ sample = rpois(1000, 50) order(sample) x=sample[order(sample)] y=seq(0, 1, length.out=1000) #Effectively 1/n sequence plot(x,y) ###### x= enter value of x, returns y value probability }
所以一旦我输入了x值,就应该计算出相应的概率。