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:
parent
8f3849b986
commit
2c83cdc537
|
@ -815,8 +815,18 @@ public class OpenMapRealVector extends AbstractRealVector implements SparseRealV
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return the percentage of none zero elements as a decimal percent.
|
* @return the percentage of none zero elements as a decimal percent.
|
||||||
|
* @deprecated Use the correctly spelled {@link #getSparsity()}
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public double getSparcity() {
|
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();
|
return (double)entries.size()/(double)getDimension();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue