rank-based segmentation of a matrix

rankBasedMatrixSegmentation(
  v,
  sparsenessQuantile,
  basic = FALSE,
  positivity = "positive",
  transpose = FALSE
)

Arguments

v

input matrix

sparsenessQuantile

a value in zero to one

basic

simplest keep top k-entries in each row

positivity

one of positive, negative, either

transpose

work on the transpose

Value

matrix

Author

Avants BB

Examples


mat <- matrix(1:200, nrow = 10)
matr <- rankBasedMatrixSegmentation(mat, 0.9, basic = FALSE, positivity = "positive")