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

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);

카테고리

도움말 센터File Exchange에서 Programming에 대해 자세히 알아보기

태그

질문:

2014년 2월 1일

댓글:

2014년 2월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by