mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-12-26 01:29:10 +00:00
yeeted useless comments
This commit is contained in:
parent
50c858175f
commit
2b9e7976c5
@ -928,70 +928,6 @@ def generate_data(filename, x, y, low, high):
|
||||
temp = temp + str(random.uniform(low, high))
|
||||
file.write(temp + "\n")
|
||||
|
||||
"""
|
||||
def debug():
|
||||
|
||||
data = load_csv('data/data.csv')
|
||||
|
||||
print("--------------------------------")
|
||||
|
||||
print(basic_stats(0, 'debug', 0))
|
||||
print(basic_stats(data, "column", 0))
|
||||
print(basic_stats(data, "row", 0))
|
||||
print(z_score(10, basic_stats(data, "column", 0)[0], basic_stats(data, "column", 0)[3]))
|
||||
print(histo_analysis(data[0], 0.01, -1, 1))
|
||||
print(stdev_z_split(3.3, 0.2, 0.1, -5, 5))
|
||||
|
||||
print("--------------------------------")
|
||||
|
||||
game_c_entities = c_entities(["bot", "bot", "bot"], [0, 1, 2], [[10, 10], [-10, -10], [10, -10]], ["shit", "bad", "worse"], ["triangle", "square", "circle"])
|
||||
game_c_entities.append("bot", 3, [-10, 10], "useless", "pentagram")
|
||||
game_c_entities.edit(0, "null", "null", "null", "null", "triagon")
|
||||
print(game_c_entities.search(0))
|
||||
print(game_c_entities.debug())
|
||||
print(game_c_entities.regurgitate())
|
||||
|
||||
print("--------------------------------")
|
||||
|
||||
game_nc_entities = nc_entities(["cube", "cube", "ball"], [0, 1, 2], [[0, 0.5], [1, 1.5], [2, 2]], ["1;1;1;10', '2;1;1;20", "r=0.5, 5"], ["1", "1", "0"])
|
||||
game_nc_entities.append("cone", 3, [1, -1], "property", "effect")
|
||||
game_nc_entities.edit(2, "sphere", 10, [5, -5], "new prop", "new effect")
|
||||
print(game_nc_entities.search(10))
|
||||
print(game_nc_entities.debug())
|
||||
print(game_nc_entities.regurgitate())
|
||||
|
||||
print("--------------------------------")
|
||||
|
||||
game_obstacles = obstacles(["wall", "fortress", "castle"], [0, 1, 2],[[[10, 10], [10, 9], [9, 10], [9, 9]], [[-10, 9], [-10, -9], [-9, -10]], [[5, 0], [4, -1], [-4, -1]]] , [0, 0.01, 10])
|
||||
game_obstacles.append("bastion", 3, [[50, 50], [49, 50], [50, 49], [49, 49]], 75)
|
||||
game_obstacles.edit(0, "motte and bailey", "null", [[10, 10], [9, 10], [10, 9], [9, 9]], 0.01)
|
||||
print(game_obstacles.search(0))
|
||||
print(game_obstacles.debug())
|
||||
print(game_obstacles.regurgitate())
|
||||
|
||||
print("--------------------------------")
|
||||
|
||||
game_objectives = objectives(["switch", "scale", "climb"], [0,1,2], [[0,0],[1,1],[2,0]], ["0,1", "1,1", "0,5"])
|
||||
game_objectives.append("auto", 3, [0, 10], "1, 10")
|
||||
game_objectives.edit(3, "null", 4, "null", "null")
|
||||
print(game_objectives.search(4))
|
||||
print(game_objectives.debug())
|
||||
print(game_objectives.regurgitate())
|
||||
|
||||
print("--------------------------------")
|
||||
|
||||
print(poly_regression([1, 2, 3, 4, 5], [1, 2, 4, 8, 16], 2))
|
||||
print(log_regression([1, 2, 3, 4], [2, 4, 8, 16], 2.717))
|
||||
print(exp_regression([1, 2, 3, 4], [2, 4, 8, 16], 2.717))
|
||||
|
||||
x, y, z, o = optimize_regression([0, 1, 2, 3, 4, 5, 6, 7, 8, 9], [1, 2, 4, 7, 19, 22, 30, 50, 60, 80], 10, 10)
|
||||
|
||||
for i in range(0, len(x), 1):
|
||||
print(str(x[i]) + " | " + str(y[i]) + " | " + str(z[i]) + " | " + str(o[i][0]) + " | " + str(o[i][1]))
|
||||
"""
|
||||
|
||||
#statistics def below
|
||||
|
||||
class StatisticsError(ValueError):
|
||||
pass
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user