axjack's blog

### axjack is said to be an abbreviation for An eXistent JApanese Cool Klutz ###

ecdf関数とstepfun関数

  • ecdf関数は経験累積分布関数を返す関数
  • stepfun関数はステップ関数・区分関数・単関数(?)を返す関数

 

d <- c(1:10)
Fn <- ecdf(d)
plot(Fn)

knots(Fn)

Gn <- stepfun(d,c(1,3,2,5,4,7,3,3,4,2,1))

plot(Gn)

axjack is said to be an abbreviation for An eXistent JApanese Cool Klutz.