thin: thin

Description Usage Arguments Value Examples

View source: R/DCARS.R

Description

The thin function extracts the rows of a matrix evenly so that roughly n number of rows remain. Used for thinning down the weight matrix to speed up overall computation.

Usage

1
thin(W, n = 100)

Arguments

W

matrix

n

rough number of rows to keep

Value

matrix of thinned matrix keeping only roughly n rows.

Examples

1
2
W = weightMatrix(500)
W_small = thin(W, n = 100)

shazanfar/DCARS documentation built on Oct. 14, 2020, 11:11 a.m.