Description Usage Arguments Details Value Author(s) Examples
View source: R/r-utility-ustep.R
This function calculates the unit step values by comparing input argument against a threshold. It is used in examples presented in the book Cichosz, P. (2015): Data Mining Algorithms: Explained Using R. See Appendix B or http://www.wiley.com/go/data_mining_algorithms for more details.
1 | ustep(v, thres = 0)
|
v |
a numeric vector |
thres |
a numeric threshold |
The unit step value is 1
if the input argument is greater than
or equal to the threshold and 0
otherwise.
A vector of unit step values for all input argument values from v
.
Pawel Cichosz <p.cichosz@elka.pw.edu.pl>
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.