Commit ff99ed93 authored by Carlos GO's avatar Carlos GO
Browse files

Merge branch 'test'

parents 60827318 3f7b55e3
......@@ -74,6 +74,11 @@ class RNA:
if fit == "target":
self.fitness = math.exp((-1 * beta * bp_dist(self.structure,\
target)) / len(self.structure))
if fit == "gaussian":
sigma = 20
mean = 40
z = abs(-1 * self.energy - mean) / sigma
self.fitness = 1 / (1 + np.exp(z))
pass
def hamming(s1, s2):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment