Correct the spelling of the getSparcity [sic] method.

Issue: MATH-368



git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@942488 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
William Barker 2010-05-09 02:06:48 +00:00
parent 8f3849b986
commit 2c83cdc537
1 changed files with 10 additions and 0 deletions

View File

@ -815,8 +815,18 @@ public class OpenMapRealVector extends AbstractRealVector implements SparseRealV
/**
*
* @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();
}