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.
|
||||
*/
|
||||
public DescriptiveStatistics(int window) {
|
||||
super();
|
||||
setWindowSize(window);
|
||||
}
|
||||
|
||||
|
@ -326,10 +325,7 @@ public class DescriptiveStatistics implements StatisticalSummary, Serializable {
|
|||
* were added to this set
|
||||
*/
|
||||
public double[] getValues() {
|
||||
double[] copiedArray = new double[eDA.getNumElements()];
|
||||
System.arraycopy(eDA.getElements(), 0, copiedArray,
|
||||
0, eDA.getNumElements());
|
||||
return copiedArray;
|
||||
return eDA.getElements();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue