Skip to content
Snippets Groups Projects
Commit c4f69c72 authored by Nihama Sandra Ayumi's avatar Nihama Sandra Ayumi
Browse files

Merge branch 'master' of...

parents d7ed79a9 e65fba6d
No related branches found
No related tags found
No related merge requests found
from table_rotation import table_rotation
from traj3D import *
from Initialisation import table_rotation
from Traj3D import *
import numpy as np
from math import sqrt
......@@ -16,18 +16,21 @@ class Individu():
first_nucleotide = traj_array[0, :]
last_nucleotide = traj_array[-1, :]
distance = sqrt(sum((last_nucleotide - last_nucleotide) ** 2))
distance = sqrt(sum((first_nucleotide - last_nucleotide) ** 2))
first_name = brin[0]
last_name = brin[-1]
rot_computed = rot_table[last_name+first_name]
rot_computed = self.rot_table[last_name+first_name]
rot_traj = first_name - last_name
diff_angle = sum(abs(rot_computed - rot_traj))
self.score = 1/(distance + diff_angle)
def mutation(self):
# def mutation(self):
return mutation
# return mutation
individu1 = Individu(table_rotation())
print(individu1.rot_table.dict["AA"].x)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment