def _add_inc_data(name, chunksize):
 points = DATASETS[name]
 ndim = points.shape[1]
 opts = None
 nmin = (ndim + 2)
 if (name == 'some-points'):
  opts = 'QJ Pp'
 elif (name == 'pathological-1'):
  nmin = 12
 chunks = [points[:nmin]]
 for j in xrange(nmin, len(points), chunksize):
  chunks.append(points[j:(j + chunksize)])
 new_name = ('%s-chunk-%d' % (name, chunksize))
 assert (new_name not in INCREMENTAL_DATASETS)
 INCREMENTAL_DATASETS[new_name] = (chunks, opts)

def _add_inc_data ( name , chunksize ) : points = DATASETS [ name ] ndim = points . shape [ 1 ] opts = None nmin = ( ndim + 2 ) if ( name == 'some-points' ) : opts = 'QJ Pp' elif ( name == 'pathological-1' ) : nmin = 12 chunks = [ points [ : nmin ] ] for j in xrange ( nmin , len ( points ) , chunksize ) : chunks . append ( points [ j : ( j + chunksize ) ] ) new_name = ( '%s-chunk-%d' % ( name , chunksize ) ) assert ( new_name not in INCREMENTAL_DATASETS ) INCREMENTAL_DATASETS [ new_name ] = ( chunks , opts )
generate incremental datasets from basic data sets .