Clip | R Documentation |
This function clips the incoming (multi-channel) signal at the given limits. Specify empty values for either one of the limits if you don’t want clipping at that side of the signal range. Signal channels are represented by rows.
Clip(inSignal, inLowLimit = NULL, inHighLimit = NULL, inClipLowTo = NULL, inClipHighTo = NULL)
inSignal |
a matrix representing the (multi-channel) signal to be clipped. |
inLowLimit |
specifies the low level clipping value: values lower than this are replaced by either the limit itself or |
inHighLimit |
specifies the high level clipping value: values higher than this are replaced by either the limit itself or |
inClipLowTo |
if non-empty, this is a replacement value for too low values. If empty or not specified, |
inClipHighTo |
if non-empty, this is a replacement value for too high values. If empty or not specified, |
A matrix representing the clipped signal.
Marc Vidal (R
version). Based on the original code from IPEM Toolbox.
s <- matrix(runif(64), ncol=8) sc <- Clip(s, 0.5 ,0.7, 0, 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.