rapid-spreadjs 1.0.45 → 1.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +2 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs.min.js +1 -1
- package/dist/index.cjs.min.js.map +1 -1
- package/dist/index.esm.js +2 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm.min.js +1 -1
- package/dist/index.esm.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -18940,11 +18940,8 @@ const FormulaUtils = {
|
|
|
18940
18940
|
arr.push(retData.allCellVals[index]);
|
|
18941
18941
|
}
|
|
18942
18942
|
let bzc = retData.allCellVals[retData.allCellVals.length - 1];
|
|
18943
|
-
console.log(1, retData.allCellVals);
|
|
18944
|
-
console.log(2, arr);
|
|
18945
|
-
console.log(3, bzc);
|
|
18946
18943
|
var avg;
|
|
18947
|
-
avg = FormulaUtils.commFun.
|
|
18944
|
+
avg = FormulaUtils.commFun.getAverage(arr);
|
|
18948
18945
|
if (bzc <= 5) {
|
|
18949
18946
|
return avg;
|
|
18950
18947
|
}
|
|
@@ -18953,7 +18950,7 @@ const FormulaUtils = {
|
|
|
18953
18950
|
arr.shift(); // 删除首元素
|
|
18954
18951
|
arr.pop(); // 删除尾元素
|
|
18955
18952
|
var bzc1 = FormulaUtils.commFun.GetS(arr); //剔除后的标准差
|
|
18956
|
-
var avg1 = FormulaUtils.commFun.
|
|
18953
|
+
var avg1 = FormulaUtils.commFun.getAverage(arr); //剔除后的平均值
|
|
18957
18954
|
if (bzc1 <= 5) {
|
|
18958
18955
|
avg = avg1;
|
|
18959
18956
|
}
|