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

05-23 21:57