parameters: (self, fp)
return_statement: return data_points
docstring: Generates a dictionary of data points and their frequency of occurrance.
  
          @fp - The BlockFile object to generate data points from.
  
          Returns a dictionary.
docstring_summary: Generates a dictionary of data points and their frequency of occurrance.
docstring_tokens: Generates a dictionary of data points and their frequency of occurrance .
function: def _generate_data_points(self, fp):
          '''
          Generates a dictionary of data points and their frequency of occurrance.
  
          @fp - The BlockFile object to generate data points from.
  
          Returns a dictionary.
          '''
          i = 0
          data_points = {}
  
          self._print("Generating data points for %s" % fp.name)
  
          # We don't need any extra data from BlockFile
          fp.set_block_size(peek=0)
  
          while True:
              (data, dlen) = fp.read_block()
              if not data or not dlen:
                  break
  
              i = 0
              while (i+(self.axis-1)) < dlen:
                  point = self._generate_data_point(data[i:i+self.axis])
                  if has_key(data_points, point):
                      data_points[point] += 1
                  else:
                      data_points[point] = 1
                  i += 3
  
          return data_points
function_tokens: def _generate_data_points ( self , fp ) : i = 0 data_points = { } self . _print ( "Generating data points for %s" % fp . name ) # We don't need any extra data from BlockFile fp . set_block_size ( peek = 0 ) while True : ( data , dlen ) = fp . read_block ( ) if not data or not dlen : break i = 0 while ( i + ( self . axis - 1 ) ) < dlen : point = self . _generate_data_point ( data [ i : i + self . axis ] ) if has_key ( data_points , point ) : data_points [ point ] += 1 else : data_points [ point ] = 1 i += 3 return data_points