Class DerivativeDTWDistance

    • Constructor Detail

      • DerivativeDTWDistance

        public DerivativeDTWDistance()
        Constructor.
      • DerivativeDTWDistance

        public DerivativeDTWDistance​(double bandSize)
        Constructor.
        Parameters:
        bandSize - Band size
    • Method Detail

      • firstRow

        protected void firstRow​(double[] buf,
                                int band,
                                NumberVector v1,
                                NumberVector v2,
                                int dim2)
        Description copied from class: DTWDistance
        Fill the first row.
        Overrides:
        firstRow in class DTWDistance
        Parameters:
        buf - Buffer
        band - Bandwidth
        v1 - First vector
        v2 - Second vector
        dim2 - Dimensionality of second
      • derivative

        protected double derivative​(int i,
                                    NumberVector v)
        Given a NumberVector and the position of an element, approximates the gradient of given element.
        Returns:
        Derivative as double