-
3.39.23
|
Functor for the SKPERM projector. More...
Public Member Functions | |
function | skperm (shape, k, varargin) |
Public Member Functions inherited from matfaust::proj::proj_gen | |
function | subsref (self, S) |
Additional Inherited Members | |
Protected Attributes inherited from matfaust::proj::proj_gen | |
Property | constraint |
Functor for the SKPERM projector.
This projector returns the matrix with k nonzeros of the input matrix per column and per row that maximizes the Frobenius norm.
Usage
skperm(shape, k): returns a SKPERM projector (functor), shape defines the size of the input matrix (e.g. [1, 10]), k defines the sparsity of the output matrix (k nnz coefficients per row or per column).
splincol(shape,k,'normalized', bool,'pos', bool): the optional parameters are set. By default both normalized and pos are false.
shape | vector of size 2, to define the size of the input matrix. |
k | the sparsity parameter. |
'normalized',true | (the default) normalizes the projection image according to its Frobenius norm. |
'normalized',false | no normalization. |
'pos',true | skips the negative values (replaced by zero) of the input matrix. |
'pos',false | (the default) negative values are not skipped. |
proj | the skperm projector. |
Example
function matfaust::proj::skperm::skperm | ( | shape | , |
k | , | ||
varargin | |||
) |