|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AggregationFunction
An aggregation function which calculates the value for a given value array.
| Method Summary | |
|---|---|
double |
calculate(double[] values)
Calculate function value for given values. |
double |
calculate(double[] values,
double[] weights)
Calculate function value for given values and weights. |
java.lang.String |
getName()
Returns the name of the aggregation function. |
double |
getValue()
Returns the function value. |
boolean |
supportsAttribute(Attribute attribute)
Returns whether this function supports the given attribute. |
void |
update(double value)
Consider a new value by updating counters. |
void |
update(double value,
double weight)
Consider a new value and a corresponding weight by updating counters. |
| Method Detail |
|---|
java.lang.String getName()
void update(double value,
double weight)
void update(double value)
double getValue()
double calculate(double[] values)
double calculate(double[] values,
double[] weights)
boolean supportsAttribute(Attribute attribute)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||