regularize.interval {swfdr} | R Documentation

## Force a set of values in a regular interval

### Description

(This is a simpler/faster implementation than with ifelse)

### Usage

    regularize.interval(x, interval = c(0, 1))

### Arguments

`x` | numeric vector or matrix
`interval` | numeric vector of length 2 with min/max values

### Value

same object like x, with values truncated by [0,1]

[Package swfdr version 1.13.0 Index]