edu.stanford.nlp.linalg
Class L1

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

public class L1
extends AbstractMetric

L1 norm


Constructor Summary
L1()
           
 
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

L1

public L1()
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