orthogonalizeAndQSparsify: sparsify a matrix

View source: R/multiscaleSVDxpts.R

orthogonalizeAndQSparsifyR Documentation

sparsify a matrix

Description

This implements a quantile based sparsification operation

Usage

orthogonalizeAndQSparsify(
  v,
  sparsenessQuantile = 0.5,
  positivity = "either",
  orthogonalize = TRUE,
  softThresholding = FALSE,
  unitNorm = FALSE,
  sparsenessAlg = NA
)

Arguments

v

input matrix

sparsenessQuantile

quantile to control sparseness - higher is sparser

positivity

restrict to positive or negative solution (beta) weights. choices are positive, negative or either as expressed as a string.

orthogonalize

run gram-schmidt if TRUE.

softThresholding

use soft thresholding

unitNorm

set each vector to unit norm

sparsenessAlg

string sets the NMF or other algorithm to estimate V

Value

matrix

Author(s)

Avants BB

Examples


mat <- replicate(100, rnorm(20))
mat <- orthogonalizeAndQSparsify(mat)


stnava/ANTsR documentation built on April 16, 2024, 12:17 a.m.