fixed.partition: Wrapper function for fixed threshold partitioning

Description Usage Arguments Value Examples

Description

Wrapper function for partition for fixed threshold partitioning

Usage

1

Arguments

x

A numeric matrix

t

Threshold value for use in partitioning. Values in x >= t will become 1 in the return matrix, values in x <= -t will become -1, and values in x between -t and t will become 0

Value

A matrix comprising values of 1, 0, and -1 to indicate column-wise partitioning of the input matrix into positive, neither, and negative sets, respectively.

Examples

1
2
x = matrix(rnorm(9), 3, 3)
fixed.partition(x)

MPCary/DEXICA documentation built on May 4, 2019, 2:35 p.m.