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

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

x′=x−μσ

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

  • (1)web’s law normalization:

    x←x⋅log(1+∥x∥2/0.03)∥x∥2

  • (2)unit norm normalization:

    x←x∥x∥2

  • (3)no normalization

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