|
|
请教一下各位老师, 现在我想求一下分子链主链上的二面角分布概率, 这个每个时间帧的二面角都可以求出来,现在问题是该如何处理这些结果以得到二面角分布概率?不想通过软件计算, 只想知道它内部原理自己写程序算。 麻烦老师给点建议。具体求什么就行。
PS:
源程序在这里 http://bbs.keinsci.com/thread-14821-1-1.html #### ene老师的TCL程序中这一部分没有看懂万望老师指点一二。
set index [expr int(floor([expr ($DIHED + 180) / 2]))] # 为啥/2
set density($index) [expr $density($index) + 1.0]
}
for { set i 1 } { $i < 180 } { incr i } { # 这个for循环啥意思?
set density($i) [expr $density($i) / $nf * 100]
puts -nonewline $outfile "[expr $i * 2 - 1 - 180 ]"
puts -nonewline $outfile " "
puts $outfile "[expr $density($i)]"
}
close $outfile
puts "All Done!"
|
|