MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / normalized

Method normalized

JSAT/src/jsat/linear/Vec.java:678–683  ·  view source on GitHub ↗

Returns a new vector that is the result of normalizing this vector by the L 2 norm @return a normalized version of this vector

()

Source from the content-addressed store, hash-verified

676 * @return a normalized version of this vector
677 */
678 public Vec normalized()
679 {
680 Vec toRet = this.getThisSide(null);
681 toRet.normalize();
682 return toRet;
683 }
684
685 /**
686 * Mutates this vector to be normalized by the L<sub>2</sub> norm

Callers

nothing calls this directly

Calls 2

getThisSideMethod · 0.95
normalizeMethod · 0.95

Tested by

no test coverage detected