Description
Current implementation of `Vector::kNorm` is incorrect.
Current formula is (`org.apache.ignite.ml.math.primitives.vector.AbstractVector:882`):
(\sum_{i}{x^p})^{1/p}
But correct formula is:
(\sum_{i}{|x|^p})^{1/p}
We can verify this using lectures (https://www.math.usm.edu/lambers/mat610/sum10/lecture2.pdf) or using Wolfram Mathematica:
> Norm[{x, y, z}, p] (Abs[x]^p+Abs[y]^p+Abs[z]^p)^(1/p)
Attachments
Issue Links
- links to