Example #1
0
def get_dataset(num):
     #generate 1,000 rectangles
     #widths in the range [1,500]
     #heights in the range [1,500]
    sizes = rect_gen.randomSplit(10000,500,500)
    maxTime = 5 #just a constant time I guess.
    return (sizes,maxTime)
Example #2
0
def get_dataset(num):
     #generate (1000,10000) rectangles
     #widths in the range [1,1000]
     #heights in the range [1,1000]
    numRectangles = random.randint(1000,10000)
    sizes = rect_gen.randomSplit(numRectangles,1000,1000)
    maxTime = 60
    return (sizes,maxTime)