[95fe2b]: wavelets / went_lpnorm.m  Maximize  Restore  History

Download this file

7 lines (5 with data), 184 Bytes

1
2
3
4
5
6
7
function E = went_lpnorm(x,p)
assert(0<p&&p<2,'%s: Parameter p have to be in the range ]0,2[',upper(mfilename));
%u = x./norm(x);
%E = sum(abs(x(:)).^p)^(1/p);
E = sum(abs(x(:)).^p);

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks