R/gagenV.R

Defines functions gagenV

Documented in gagenV

gagenV <- function(n, k, landa){
	sum = 0
	exp = expgenV(n, landa)
	output = numeric()
	for(i in 1:n){
		sum = sum + exp[i]
		if((i%%k) == 0){
			output = c(output, sum)
			sum = 0
		}
	}
	return(output)
}
amoloudi/R-PKG-Distributions documentation built on May 23, 2019, 7:32 a.m.