20.181:sadEvoModel: Difference between revisions

From OpenWetWare
Jump to navigationJump to search
No edit summary
No edit summary
 
Line 1: Line 1:
<nowiki>def evoModel_Sad(x,y,distance):
the code below returns 0.9 if x and y are the same; 0.1 if they're different,  
# returns 0.9 if x and y are the same; 0.1 if they're different,  
regardless of branch lengths.  use this function if you
# regardless of branch lengths.  use this function if you
can't derive the Jukes-Cantor model and would like to move
# can't derive the Jukes-Cantor model and would like to move
on to the next portion of the assignment.
# on to the next portion of the assignment.


if x == y:
<blockquote><tt>
return 0.9
def evoModel_Sad(x,y,distance):
return 0.1
 
</nowiki>
 
: if x == y:
:: return 0.9
: return 0.1
 
</tt></blockquote>

Latest revision as of 08:28, 4 October 2006

the code below returns 0.9 if x and y are the same; 0.1 if they're different, regardless of branch lengths. use this function if you can't derive the Jukes-Cantor model and would like to move on to the next portion of the assignment.

def evoModel_Sad(x,y,distance):


if x == y:
return 0.9
return 0.1