R/rdist1.R

Defines functions rdistk

Documented in rdistk

#'simulation k fois
#'@export
#'@param x numeric vector representing the values of the random variable
#'@param p numeric vector representing the probabilities
#'@param k numeric

rdistk<-function(x,p,k)

{
  m<-c(1,k)
  for(j in 1:k )

  {
     o <- rdist(x,p)
     m[j]<- o
  }
  return(m)
}
kenzamoudjeb/kenza documentation built on Dec. 21, 2021, 5:25 a.m.