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
Modifier and TypeMethodDescriptionorg.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 Details
-
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.
-