messif.objects.util.impl
Interface PatternToken

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
ArithmeticFunctionToken, ArithmeticOperatorToken, ConstantToken, SubdistanceToken

public interface PatternToken
extends java.io.Serializable

This is an abstract ancestor for individual tokens that can appear in aggregation function string.


Method Summary
 float evaluate(float[] subdistances)
          Given an array of subdistances, each token must return a float value.
 

Method Detail

evaluate

float evaluate(float[] subdistances)
Given an array of subdistances, each token must return a float value.

Parameters:
subdistances - array of subdistances corresponding to the pattern
Returns:
partial value of this part of the aggregation function pattern