def METHOD_NAME(self, X):
    """Calculate the HOG1Ds given a time series.
    Parameters
    ----------
    X : a numpy array of shape = [time_series_length]
    Returns
    -------
    HOG1Ds : a numpy array of shape = [num_intervals*num_bins].
             It contains the histogram of each gradient within
             each interval.
    """
    # Firstly, split the time series into approx equal
    # length intervals
    splitTimeSeries = self._split_time_series(X)
    HOG1Ds = []
    for x in range(len(splitTimeSeries)):
        HOG1Ds.extend(self._get_hog1d(splitTimeSeries[x]))
    return HOG1Ds