colweights: Column weighting

Description Usage Arguments Value See Also

Description

Column weighting

Usage

1
2
3
colweights(data, weightfunction, sparseinput, par1 = NULL, par2 = NULL,
  mode = NULL, binary = TRUE, convertsparse = TRUE, lower = 2,
  upper = NULL)

Arguments

data

Matrix of counts.

weightfunction

One of the following: beta", "step", "linear", "IDF", "IDF^2".

sparseinput

Logical. Is your data in sparse (long) format? (Long format = Nx3 matrix-like object of nonzero entries)

par1

Beta parameters or step function boundaries.

par2

Beta parameters or step function boundaries.

mode

Linear function max (desired density max weight, e.g. 1/k).

binary

Logical. Convert data to binary?

convertsparse

Logical. If your matrix is dense, convert to sparse

lower

Integer. Lower bound for column sum in order to retain column; columns with sums below this threshold will be removed.

upper

Integer. Upper bound for column sum in order to retain column; columns with sums above this threshold will be removed.

Value

Processed version of original input matrix.

See Also

similarity


CAMCOS/camcos2017 documentation built on May 6, 2019, 9:23 a.m.