Element-wise 0-1 step function (for LazyTensors) or default stepwise model selection
Source:R/lazytensor_operations.R
step.Rd
Symbolic element-wise 0-1 step function for LazyTensor
objects
(i.e. 0
if x < 0
, 1
if x >= 0
for an input x
) or stepwise
model selection otherwise.
Arguments
- object
input for
step.default()
orstep.LazyTensor()
.- ...
optional additional input arguments.
Value
See value of step.default()
or step.LazyTensor()
.
Details
If x
is a LazyTensor
, see step.LazyTensor()
, else
see step.default()
.
Examples
if (FALSE) {
# R base operation: see `?step.default`
# LazyTensor symbolic element-wise sign
x <- matrix(runif(150 * 3), 150, 3) # arbitrary R matrix, 150 rows, 3 columns
x_i <- LazyTensor(x, index = 'i') # creating LazyTensor from matrix x,
# indexed by 'i'
Step_x <- step.LazyTensor(x_i) # symbolic matrix, 150 rows and 3 columns
}