Interface DistanceMetric
-
- All Known Implementing Classes:
DynamicTimeWarping
,EditDistanceOnRealSequence
,EuclideanDistance
public interface DistanceMetric
This is the interface, that every distance metric has to implement in order to be integrated in the UI.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.jscience.physics.amount.Amount<? extends javax.measure.quantity.Quantity>
calculateDistance(IDataStream<org.palladiosimulator.measurementframework.TupleMeasurement> s1, IDataStream<org.palladiosimulator.measurementframework.TupleMeasurement> s2)
This method contains the distance metric algorithm.
-
-
-
Method Detail
-
calculateDistance
org.jscience.physics.amount.Amount<? extends javax.measure.quantity.Quantity> calculateDistance(IDataStream<org.palladiosimulator.measurementframework.TupleMeasurement> s1, IDataStream<org.palladiosimulator.measurementframework.TupleMeasurement> s2)
This method contains the distance metric algorithm.- Parameters:
s1
- First stream of measurement to compare.s2
- Second stream of measurement to compare.- Returns:
- Return a generic Amount which can contain any Quantity. Returns null, if calcuation couldn't be executed.
-
-