class_docstr: HOG1D transform.
  
  This class is to calculate the HOG1D transform of a
  dataframe of time series data. Works by splitting
  the time series num_intervals times, and calculate
  a histogram of gradients within each interval.
  
  Parameters
  ----------
      num_intervals   : int, length of interval.
      num_bins        : int, num bins in the histogram.
      scaling_factor  : float, a constant that is multiplied
                        to modify the distribution.
class_docstr_tok: ["HOG1D","transform",".","This","class","is","to","calculate","the","HOG1D","transform","of","a","dataframe","of","time","series","data",".","Works","by","splitting","the","time","series","num_intervals","times",",","and","calculate","a","histogram","of","gradients","within","each","interval",".","Parameters","--","--","--","--","--","num_intervals",":","int",",","length","of","interval",".","num_bins",":","int",",","num","bins","in","the","histogram",".","scaling_factor",":","float",",","a","constant","that","is","multiplied","to","modify","the","distribution","."]
docstr: Check the values of parameters inserted into HOG1D.
  
  Throws
  ------
  ValueError or TypeError if a parameters input is invalid.
docstr_tok: ["Check","the","values","of","parameters","inserted","into","HOG1D",".","Throws","--","--","--","ValueError","or","TypeError","if","a","parameters","input","is","invalid","."]
code: def _check_parameters(self, num_atts):
      """Check the values of parameters inserted into HOG1D.
  
      Throws
      ------
      ValueError or TypeError if a parameters input is invalid.
      """
      if isinstance(self.num_intervals, int):
          if self.num_intervals <= 0:
              raise ValueError(
                  "num_intervals must have \
                                    the value of at least 1"
              )
          if self.num_intervals > num_atts:
              raise ValueError(
                  "num_intervals cannot be higher \
                                    than subsequence_length"
              )
      else:
          raise TypeError(
              "num_intervals must be an 'int'. \
                              Found '"
              + type(self.num_intervals).__name__
              + "' instead."
          )
  
      if isinstance(self.num_bins, int):
          if self.num_bins <= 0:
              raise ValueError(
                  "num_bins must have the value of \
                                    at least 1"
              )
      else:
          raise TypeError(
              "num_bins must be an 'int'. Found '"
              + type(self.num_bins).__name__
              + "' \
                              instead."
          )
  
      if not isinstance(self.scaling_factor, numbers.Number):
          raise TypeError(
              "scaling_factor must be a 'number'. \
                              Found '"
              + type(self.scaling_factor).__name__
              + "' instead."
          )
  
file_path: sktime/sktime/transformations/panel/hog1d.py
imports: import math
  import numbers
  import numpy
  import pandas
  from sktime.datatypes._panel._convert import from_nested_to_2d_array
  from sktime.transformations.base import BaseTransformer
label_desc: Use image node_id 6 for calling the HOG1DTransformer obj's underlying member method code with example usage: obj._check_parameters(num_atts) without return types