removed unneeded call to super()
removed spurious data copy (a copy was already done in the ResizableDoubleArray) git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@724020 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9fc12bd85c
commit
43b958fd8f
|
@ -107,7 +107,6 @@ public class DescriptiveStatistics implements StatisticalSummary, Serializable {
|
||||||
* @param window the window size.
|
* @param window the window size.
|
||||||
*/
|
*/
|
||||||
public DescriptiveStatistics(int window) {
|
public DescriptiveStatistics(int window) {
|
||||||
super();
|
|
||||||
setWindowSize(window);
|
setWindowSize(window);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -326,10 +325,7 @@ public class DescriptiveStatistics implements StatisticalSummary, Serializable {
|
||||||
* were added to this set
|
* were added to this set
|
||||||
*/
|
*/
|
||||||
public double[] getValues() {
|
public double[] getValues() {
|
||||||
double[] copiedArray = new double[eDA.getNumElements()];
|
return eDA.getElements();
|
||||||
System.arraycopy(eDA.getElements(), 0, copiedArray,
|
|
||||||
0, eDA.getNumElements());
|
|
||||||
return copiedArray;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue