From: <ha...@us...> - 2010-03-11 13:07:58
|
Revision: 12599 http://jmol.svn.sourceforge.net/jmol/?rev=12599&view=rev Author: hansonr Date: 2010-03-11 13:07:51 +0000 (Thu, 11 Mar 2010) Log Message: ----------- version=11.9.33_dev # new feature: quaterion array .average .stddev using SphereMean Modified Paths: -------------- trunk/Jmol/src/org/jmol/util/Quaternion.java Modified: trunk/Jmol/src/org/jmol/util/Quaternion.java =================================================================== --- trunk/Jmol/src/org/jmol/util/Quaternion.java 2010-03-11 13:04:15 UTC (rev 12598) +++ trunk/Jmol/src/org/jmol/util/Quaternion.java 2010-03-11 13:07:51 UTC (rev 12599) @@ -732,8 +732,7 @@ v.scale(theta); sum.add(v); } - sum.scale(1f / data.length); - theta = sum.length(); + theta = sum.length() / data.length; Quaternion dqMean = new Quaternion(sum, theta); return dqMean.mul(mean); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |