i have a coloum data, how to normalize it in Source Scanning Algorithm

1 次查看(过去 30 天)
how to set the column data to a range of 0-1; what is the first step,get absolute value or normalize?

采纳的回答

Mischa Kim
Mischa Kim 2014-2-1
编辑:Mischa Kim 2014-2-1
The simple approach:
abs(data)/norm(data)
Are you concerned about algorithm speed?

更多回答(1 个)

Wayne King
Wayne King 2014-2-1
编辑:Wayne King 2014-2-1
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);

类别

Help CenterFile Exchange 中查找有关 MATLAB Coder 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by