Class EuclideanDistance
- java.lang.Object
-
- org.palladiosimulator.edp2.distancemetrics.EuclideanDistance
-
- All Implemented Interfaces:
DistanceMetric
public class EuclideanDistance extends Object implements DistanceMetric
This algorithm calculates the distance with the Euclidean Distance and interpolates the values if the time values of the two current measurement points doesn't match.
-
-
Constructor Summary
Constructors Constructor Description EuclideanDistance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jscience.physics.amount.Amount<?>
calculateDistance(IDataStream<org.palladiosimulator.measurementframework.TupleMeasurement> s1, IDataStream<org.palladiosimulator.measurementframework.TupleMeasurement> s2)
This method contains the distance metric algorithm.
-
-
-
Method Detail
-
calculateDistance
public org.jscience.physics.amount.Amount<?> calculateDistance(IDataStream<org.palladiosimulator.measurementframework.TupleMeasurement> s1, IDataStream<org.palladiosimulator.measurementframework.TupleMeasurement> s2)
Description copied from interface:DistanceMetric
This method contains the distance metric algorithm.- Specified by:
calculateDistance
in interfaceDistanceMetric
- 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.
-
-