pwu | R Documentation |
This will calculate the distribution function of the piecewise uniform distribution
pwu(t=seq(0,1,by=0.1),u=c(0,5,0.5),ut=c(1,2))
t |
a vector of time points |
u |
piecewise constant density |
ut |
a strictly increasing sequence of time points defining the pieces. The first element must be strictly greater than zero. |
Let f(t)=∑_{j=1}^m u_j I(t_{j-1}<t≤ t_j) be the density function, where u_1,…,u_m are the corresponding elements of u and t_1,…,t_{m} are the corresponding elements of ut and t_0=0. The distribution function
F(t)=∑_{j=1}^m u_j(t\wedge t_j-t\wedge t_{j-1}).
User must make sure that ∑_{j=1}^m u_j (t_j-t_{j-1})=1 before using this function.
dist |
distribution |
This provides distribution of the piecewise uniform distribution
Xiaodong Luo
Luo, et al. (2017)
pwe
t<-seq(-1,3,by=0.5) u<-c(0.6,0.4) ut<-c(1,2) pwud<-pwu(t=t,u=u,ut=ut) pwud
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.