Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Carlos GO
mateRNAl
Commits
ff99ed93
Commit
ff99ed93
authored
May 15, 2018
by
Carlos GO
Browse files
Merge branch 'test'
parents
60827318
3f7b55e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
mateRNAl.py
View file @
ff99ed93
...
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment