discrete_rv_self: function to generate discrete uniform random variables for...

View source: R/discrete_rv_self.R

discrete_rv_selfR Documentation

function to generate discrete uniform random variables for initial random design points in ForLion

Description

function to generate discrete uniform random variables for initial random design points in ForLion

Usage

discrete_rv_self(n, xlist)

Arguments

n

number of discrete random variables

xlist

list of levels for variables to be generated

Value

list of discrete uniform random variables

Examples

n=3 #three discrete random variables
xlist=list(c(-1,1),c(-1,1),c(-1,0,1)) #two binary and one three-levels
discrete_rv_self(n, xlist)



ForLion documentation built on April 11, 2025, 5:38 p.m.