Author: billbarker Date: Sun May 9 02:06:48 2010 New Revision: 942488 URL: http://svn.apache.org/viewvc?rev=942488&view=rev Log: Correct the spelling of the getSparcity [sic] method. Issue: MATH-368
Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/OpenMapRealVector.java Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/OpenMapRealVector.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/OpenMapRealVector.java?rev=942488&r1=942487&r2=942488&view=diff ============================================================================== --- commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/OpenMapRealVector.java (original) +++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/OpenMapRealVector.java Sun May 9 02:06:48 2010 @@ -815,8 +815,18 @@ public class OpenMapRealVector extends A /** * * @return the percentage of none zero elements as a decimal percent. + * @deprecated Use the correctly spelled {...@link #getSparsity()} */ + @Deprecated public double getSparcity() { + return getSparsity(); + } + + /** + * + * @return the percentage of none zero elements as a decimal percent. + */ + public double getSparsity() { return (double)entries.size()/(double)getDimension(); }