maltcms.commands.distances
Interface IDtwSimilarityFunction

All Superinterfaces:
cross.IConfigurable, Serializable
All Known Implementing Classes:
DtwPairwiseSimilarity, DtwTimePenalizedPairwiseSimilarity

public interface IDtwSimilarityFunction
extends cross.IConfigurable

Interface to define classes, comparing arrays, especially mass spectra by some function and returning a double value as result.

Author:
nilshoffmann

Method Summary
 double apply(int i1, int i2, double time1, double time2, Array t1, Array t2)
          if i1 && i2 > 0 => apply distance to indices only else apply to all elements of array
 double getCompressionWeight()
           
 double getExpansionWeight()
           
 double getMatchWeight()
           
 boolean minimize()
           
 void setCompressionWeight(double d)
           
 void setExpansionWeight(double d)
           
 void setMatchWeight(double d)
           
 
Methods inherited from interface cross.IConfigurable
configure
 

Method Detail

apply

double apply(int i1,
             int i2,
             double time1,
             double time2,
             Array t1,
             Array t2)
if i1 && i2 > 0 => apply distance to indices only else apply to all elements of array

Parameters:
i1 -
i2 -
t1 -
t2 -
Returns:

getCompressionWeight

double getCompressionWeight()

getMatchWeight

double getMatchWeight()

getExpansionWeight

double getExpansionWeight()

setCompressionWeight

void setCompressionWeight(double d)

setMatchWeight

void setMatchWeight(double d)

setExpansionWeight

void setExpansionWeight(double d)

minimize

boolean minimize()


Copyright © 2007-2012. All Rights Reserved.