edu.stanford.nlp.math
Class WeightedAverage

java.lang.Object
  |
  +--edu.stanford.nlp.math.WeightedAverage
All Implemented Interfaces:
Double4Function

public class WeightedAverage
extends Object
implements Double4Function

Implements Weighted average


Constructor Summary
WeightedAverage()
           
 
Method Summary
 double apply(double x, double y, double weightx, double weighty)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeightedAverage

public WeightedAverage()
Method Detail

apply

public double apply(double x,
                    double y,
                    double weightx,
                    double weighty)
Specified by:
apply in interface Double4Function


Stanford NLP Group