parameters: (dataFrame, hyperParams)
return_statement: return dataFrame
docstring: This function calls the entire data frame, uses
      indicesMaxMin() function to iteratively obtain the
      features.
docstring_summary: This function calls the entire data frame, uses
      indicesMaxMin() function to iteratively obtain the
      features.
docstring_tokens: This function calls the entire data frame uses indicesMaxMin () function to iteratively obtain the features .
function: def longestPosNegFeatures(dataFrame, hyperParams):
      '''
      This function calls the entire data frame, uses
      indicesMaxMin() function to iteratively obtain the
      features.
      '''
      assert('norm_gy' in dataFrame.columns)
      windowWidth = hyperParams['windowWidth']
      windowStride = hyperParams['windowStride']
      assert(windowStride == 1)
      dataFrame['longestPosEdge'] = 0
      dataFrame['longestNegEdge'] = 0
      dataFrame['longestPosCount'] = 0
      dataFrame['longestNegCount'] = 0
      colIndex = dataFrame.columns.get_loc('norm_gy')
      colIndexPos = dataFrame.columns.get_loc('longestPosEdge')
      colIndexNeg = dataFrame.columns.get_loc('longestNegEdge')
      colIndexPosCount = dataFrame.columns.get_loc('longestPosCount')
      colIndexNegCount = dataFrame.columns.get_loc('longestNegCount')
      startWindow = 0
      endWindow = windowWidth
      lengthDF = len(dataFrame)
      while endWindow < lengthDF:
          values = dataFrame.iloc[startWindow:endWindow, colIndex].values
          listMaxMinIndex = indicesMaxMin(values, hyperParams)
          dataFrame.iloc[endWindow - 1, colIndexPos] = listMaxMinIndex[0]
          dataFrame.iloc[endWindow - 1, colIndexNeg] = listMaxMinIndex[-1]
          dataFrame.iloc[endWindow - 1, colIndexPosCount] = listMaxMinIndex[1]
          dataFrame.iloc[endWindow - 1, colIndexNegCount] = listMaxMinIndex[-2]
          startWindow = startWindow + windowStride
          endWindow = startWindow + windowWidth
      return dataFrame
function_tokens: def longestPosNegFeatures ( dataFrame , hyperParams ) : assert ( 'norm_gy' in dataFrame . columns ) windowWidth = hyperParams [ 'windowWidth' ] windowStride = hyperParams [ 'windowStride' ] assert ( windowStride == 1 ) dataFrame [ 'longestPosEdge' ] = 0 dataFrame [ 'longestNegEdge' ] = 0 dataFrame [ 'longestPosCount' ] = 0 dataFrame [ 'longestNegCount' ] = 0 colIndex = dataFrame . columns . get_loc ( 'norm_gy' ) colIndexPos = dataFrame . columns . get_loc ( 'longestPosEdge' ) colIndexNeg = dataFrame . columns . get_loc ( 'longestNegEdge' ) colIndexPosCount = dataFrame . columns . get_loc ( 'longestPosCount' ) colIndexNegCount = dataFrame . columns . get_loc ( 'longestNegCount' ) startWindow = 0 endWindow = windowWidth lengthDF = len ( dataFrame ) while endWindow < lengthDF : values = dataFrame . iloc [ startWindow : endWindow , colIndex ] . values listMaxMinIndex = indicesMaxMin ( values , hyperParams ) dataFrame . iloc [ endWindow - 1 , colIndexPos ] = listMaxMinIndex [ 0 ] dataFrame . iloc [ endWindow - 1 , colIndexNeg ] = listMaxMinIndex [ - 1 ] dataFrame . iloc [ endWindow - 1 , colIndexPosCount ] = listMaxMinIndex [ 1 ] dataFrame . iloc [ endWindow - 1 , colIndexNegCount ] = listMaxMinIndex [ - 2 ] startWindow = startWindow + windowStride endWindow = startWindow + windowWidth return dataFrame