This functions minimises |x-uv'|2 s.t. sum(abs(u))<sumabs.
1 | smr(x, v, sumabs)
|
x |
a n by p dataset |
v |
a 1 by p vector |
a |
scalar value for the L1 contraint on u |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.