get_adjust_switch: Get Updated Adjustment Status.

Description Usage Arguments Value

View source: R/model_helper.R

Description

Return the updated adjustment status based on the react_speed and react_counter.

Usage

1
get_adjust_switch(score1, react_counter, adjust_switch, react_speed)

Arguments

score1

A numeric indicating the computed score1 information from previous prediction step, should be 1, 0 or NA.

react_counter

A numeric indicating the status of counter for changing the status of adjust_switch.

adjust_switch

A logical indicating the status of adjustment switch, TRUE for on and FALSE.

react_speed

A numeric vector indicating the reacting speed to change adjustment switch from FALSE to TRUE and from TRUE to FALSE.

Value

A list containing update step and switch information.


carlonlv/DataCenterSim documentation built on Jan. 9, 2022, 3:26 p.m.