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

1 回表示 (過去 30 日間)
Roger
Roger 2014 年 2 月 1 日
コメント済み: Roger 2014 年 2 月 1 日
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 Center および File ExchangeMATLAB Coder についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by