R/rwexp.R

Defines functions rwexp

Documented in rwexp

#' Expectation of random walk.
#' The expectation of the random walk as described in "stochastic calculus
#' for finance" equal 0.
#' Therefore the calculation made by this function is only a verification
#' of the Expected zero growth for random walk.
#' More details and calculation will come later.
rwexp <- function(Mk){
  sapply(Mk, function(x){sum(x[, 1] * x[, 2])})
}
AnthonyTedde/RandomProcesses documentation built on Dec. 14, 2021, 10:39 a.m.