From: <ha...@us...> - 2010-03-11 13:09:28
|
Revision: 12601 http://jmol.svn.sourceforge.net/jmol/?rev=12601&view=rev Author: hansonr Date: 2010-03-11 13:09:19 +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:08:19 UTC (rev 12600) +++ trunk/Jmol/src/org/jmol/util/Quaternion.java 2010-03-11 13:09:19 UTC (rev 12601) @@ -731,8 +731,7 @@ v.scale(theta); sum.add(v); } - theta = sum.length() / data.length; - Quaternion dqMean = new Quaternion(sum, theta); + Quaternion dqMean = new Quaternion(sum, sum.length() / data.length); return dqMean.mul(mean); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |