ListenerModeOrRandom: Internal LISTENER function to be used in SLPAw algorithm.

Description Usage Arguments Value

View source: R/crules.R

Description

Internal LISTENER function to be used in SLPAw algorithm.

Usage

1

Arguments

x

a vector of values

...

dummy additional arguments that may be passed to other listeners

Value

the mode or weightd mode of provided values, or a random number amongst tied modes.


rahuldhodapkar/crules documentation built on Jan. 21, 2022, 2:06 p.m.