Dear Wiki user, You have subscribed to a wiki page or wiki category on "Hama Wiki" for change notification.
The following page has been changed by udanax: http://wiki.apache.org/hama/InterfaceConsiderations The comment on the change is: Add vector-norms ------------------------------------------------------------------------------ * @param type * @return norm of the vector */ - public double norm(Vector.Norm type); + public double norm(Norm type); + + /** + * Supported vector-norms. + */ + enum Norm { + + /** Sum of the absolute values of the entries */ + One, + + /** The root of sum of squares */ + Two, + + /** + * As the 2 norm may overflow, an overflow resistant version is also + * available. Note that it may be slower. + */ + TwoRobust, + + /** Largest entry in absolute value */ + Infinity + } } }}}
