Learn R Programming

dbnR (version 0.7.1)

randomize_vl_cpp: Randomize a velocity with the given probabilities

Description

Randomize a velocity with the given probabilities

Usage

randomize_vl_cpp(vl, probs)

Arguments

vl

a velocity list

probs

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

Value

a velocity list with randomized values