Learn R Programming

PRNG (version 0.0.2.1.2)

saw_tooth: Saw tooth map

Description

saw tooth map is a family of maps as f(x)=b*x mod1

Usage

saw_tooth(x0)

Value

(3*x) mod(1)

Arguments

x0

seed value ranging from 0 to 1

Examples

Run this code
saw_tooth(0.6)

Run the code above in your browser using DataLab