rapid-spreadjs 1.0.46 → 1.0.47

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.esm.js CHANGED
@@ -18939,6 +18939,37 @@ const FormulaUtils = {
18939
18939
  return avg;
18940
18940
  },
18941
18941
  },
18942
+ {
18943
+ funName: 'YJSZFBZC',
18944
+ funDesc: '四组分标准差',
18945
+ funDefaultVal: null,
18946
+ funParams: [
18947
+ {
18948
+ name: '数值数组',
18949
+ repeatable: false,
18950
+ optional: false,
18951
+ },
18952
+ ],
18953
+ funCallback: (spread, sheet, retData) => {
18954
+ //如果传递的参数小于1个,则返回空字符串
18955
+ if (retData.allCellVals.length < 1) {
18956
+ return '';
18957
+ }
18958
+ let arr = retData.allCellVals;
18959
+ var bzc;
18960
+ bzc = FormulaUtils.commFun.GetS(arr);
18961
+ if (bzc <= 5) {
18962
+ return bzc;
18963
+ }
18964
+ else {
18965
+ arr.sort((a, b) => a - b); //排序
18966
+ arr.shift(); // 删除首元素
18967
+ arr.pop(); // 删除尾元素
18968
+ bzc = FormulaUtils.commFun.GetS(arr); //剔除后的标准差
18969
+ }
18970
+ return bzc;
18971
+ },
18972
+ },
18942
18973
  ],
18943
18974
  };
18944
18975