edu.stanford.nlp.linalg
Class L2

java.lang.Object
  |
  +--edu.stanford.nlp.linalg.AbstractMetric
        |
        +--edu.stanford.nlp.linalg.L2
All Implemented Interfaces:
Metric, Similarity

public class L2
extends AbstractMetric

L2 norm


Constructor Summary
L2()
           
 
Method Summary
 double norm(Array i)
          returns the norm of a vector in this metric
 
Methods inherited from class edu.stanford.nlp.linalg.AbstractMetric
distance, normalize, similarity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

L2

public L2()
Method Detail

norm

public double norm(Array i)
Description copied from class: AbstractMetric
returns the norm of a vector in this metric

Specified by:
norm in interface Metric
Specified by:
norm in class AbstractMetric


Stanford NLP Group