Skip to content

Commit

Permalink
Remove extra comment
Browse files Browse the repository at this point in the history
  • Loading branch information
wellington36 committed Feb 26, 2023
1 parent cbfab83 commit eb16bf6
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions acceleration.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,32 +85,6 @@ def G_transform(items: np.ndarray, steps=-1) -> np.ndarray:

return acel

#def G_transform(items: list, steps=-1) -> list:
# # Initial values
# aux1 = [1 for _ in range(len(items))]
# aux2 = [items[0]] + [items[i+1] - items[i] for i in range(len(items)-1)]
# acel = items
#
# if steps == -1:
# steps = len(items) - 1
#
# for _ in range(steps):
# for i in range(len(aux1) - 2):
# aux1[i] = aux1[i+1] * (aux2[i+1] / aux2[i] - 1)
# aux1 = aux1[:-1]
#
# for i in range(len(aux2) - 2):
# aux2[i] = aux2[i+1] * (aux1[i+1] / aux1[i] - 1)
# aux2 = aux2[:-1]
#
#
# print(f"{len(aux1)}, {len(aux2)}, {len(acel)}")
# for i in range(len(acel) - 2):
# acel[i] = acel[i] - aux2[i] * (acel[i+1] - acel[i])/(aux2[i+1] - aux2[i])
# acel = acel[:-1]
#
# return acel


if __name__ == "__main__":

Expand Down

0 comments on commit eb16bf6

Please sign in to comment.