function x = normalize(x, mu, sigma)
x = bsxfun(@minus, x, mu);
x = bsxfun(@rdivide, x, sigma);
end

这里归一化使用的函数为:

x=xμσ

还可根据具体问题,使用特定的归一化函数:

  • (1)web’s law normalization:

    xxlog(1+x2/0.03)x2

  • (2)unit norm normalization:

    xxx2

  • (3)no normalization

posted on 2016-12-04 22:16  未雨愁眸  阅读(5782)  评论(0编辑  收藏  举报