def uniform_linear_layout(points):
 indices = numpy.argsort(points)
 space = numpy.asarray(linspace(len(points)))
 indices = invert_permutation_indices(indices)
 points = space[indices]
 return points.tolist()

def uniform_linear_layout ( points ) : indices = numpy . argsort ( points ) space = numpy . asarray ( linspace ( len ( points ) ) ) indices = invert_permutation_indices ( indices ) points = space [ indices ] return points . tolist ( )
layout the points in a uniform linear space while preserving the existing sorting order .