Learn R Programming

rkeops (version 2.2.2)

step: Element-wise 0-1 step function (for LazyTensors) or default stepwise model selection

Description

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.

Usage

step(object, ...)

Value

See value of step.default() or step.LazyTensor().

Arguments

object

input for step.default() or step.LazyTensor().

...

optional additional input arguments.

Author

Chloe Serre-Combe, Amelie Vernay

Details

If x is a LazyTensor, see step.LazyTensor(), else see step.default().

See Also

step.default(), step.LazyTensor()

Examples

Run this code
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
}

Run the code above in your browser using DataLab