Learn R Programming

dbnR (version 0.7.8)

randomize_vl_cpp: Randomize a velocity with the given probabilities

Description

Randomize a velocity with the given probabilities

Usage

randomize_vl_cpp(vl, probs)

Value

a velocity list with randomized values

Arguments

vl

a velocity list

probs

the probabilities of each value in the set -1,0,1