Interface ITimeseriesDistanceMetric

  • All Superinterfaces:
    IDistanceMetric, org.api4.java.common.math.IMetric<double[]>
    All Known Implementing Classes:
    TimeWarpEditDistance

    public interface ITimeseriesDistanceMetric
    extends IDistanceMetric
    Interface that describes a distance measure of two time series that takes the timestamps into account.
    • Method Detail

      • distance

        double distance​(double[] a,
                        double[] tA,
                        double[] b,
                        double[] tB)
        Calculates the distance between two time series.
        Parameters:
        a - First time series.
        tA - Timestamps for the first time series.
        b - Second time series.
        tB - Timestamps for the second times series.
        Returns:
        Distance between the first and second time series.
      • distance

        default double distance​(double[] a,
                                double[] b)
        Description copied from interface: IDistanceMetric
        Calculates the distance between two time series.
        Specified by:
        distance in interface IDistanceMetric
        Parameters:
        a - First time series.
        b - Second time series.
        Returns:
        Distance between the first and second time series.