Beispiel #1
0
def percentage_data():
    percentage = request.args.get('percentage', '')
    print("percent:", percentage)
    dataloader = Dataloader.getInstance()
    #dataloader.build_dataframes(False)
    json_data = dataloader.get_percentage_data(int(percentage))
    json_data = dataloader.append_alg_params(json_data)
    return json_data
Beispiel #2
0
def graph_init():
    interested_dataset = './data/crowds/students003.txt'
    dataloader = Dataloader.getInstance()
    dataloader.build_dataframes(True, 30)
    json_data = dataloader.retrieve_df(interested_dataset)
    dataloader.retrieved_dataset = interested_dataset
    json_data = dataloader.append_alg_params(json_data)
    return render_template("index.html", json_data=json_data)
Beispiel #3
0
def run_dbcsan():
    pts = request.args.get('pts', '')
    spatial = request.args.get('spatial', '')
    temporal = request.args.get('temporal', '')
    velocity = request.args.get('velocity', '')
    percent = request.args.get('percent', '')
    print("received: ", pts, spatial, temporal, velocity, percent)
    dataloader = Dataloader.getInstance()
    json_data = dataloader.run_dbscan_with_params(float(pts), float(spatial),
                                                  float(temporal),
                                                  float(velocity),
                                                  float(percent))
    json_data = dataloader.append_alg_params(json_data)
    return json_data