i have a coloum data, how to normalize it in Source Scanning Algorithm
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
how to set the column data to a range of 0-1; what is the first step,get absolute value or normalize?
0 Kommentare
Akzeptierte Antwort
Mischa Kim
am 1 Feb. 2014
Bearbeitet: Mischa Kim
am 1 Feb. 2014
The simple approach:
abs(data)/norm(data)
Are you concerned about algorithm speed?
Weitere Antworten (1)
Wayne King
am 1 Feb. 2014
Bearbeitet: Wayne King
am 1 Feb. 2014
If you want the largest element in the vector to be mapped to 1, use the linfinity norm.
x = randn(100,1);
y = abs(x)/norm(x,Inf);
Siehe auch
Kategorien
Mehr zu MATLAB Coder finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!