-
3.39.23
|
Functor for the SPLIN projector. More...
Public Member Functions | |
function | splin (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 SPLIN projector.
A, the image matrix, is defined by \( \forall i \in \{1,\ldots,shape(1)\} \) the i-th row \( A_{i,*} \) is such that \( \|A_{i,*}\|_0 = k, \| A\|_F = 1 \) (if normalized is true).
Usage
splin(shape, k): returns a SPLIN 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).
splin(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 | normalizes the projection image according to its Frobenius norm. |
'normalized',false | (the default) no normalization. |
'pos',true | skips the negative values (replaced by zero) of the input matrix. |
'pos',false | (the default) negative values are not skipped. |
splin | projector. |
Example
function matfaust::proj::splin::splin | ( | shape | , |
k | , | ||
varargin | |||
) |