clamp | R Documentation |
same functionality as torch.clamp
clamp(x, min = 0, max = 1)
x |
numeric vector |
min |
minimum value allowed in the returned vector |
max |
maximum value allowed in the returned vector |
vector like x in the range '[min,max]'
clamp(seq(-1,2, by=0.25))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.