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.cjs.js CHANGED
@@ -18961,6 +18961,37 @@ const FormulaUtils = {
18961
18961
  return avg;
18962
18962
  },
18963
18963
  },
18964
+ {
18965
+ funName: 'YJSZFBZC',
18966
+ funDesc: '四组分标准差',
18967
+ funDefaultVal: null,
18968
+ funParams: [
18969
+ {
18970
+ name: '数值数组',
18971
+ repeatable: false,
18972
+ optional: false,
18973
+ },
18974
+ ],
18975
+ funCallback: (spread, sheet, retData) => {
18976
+ //如果传递的参数小于1个,则返回空字符串
18977
+ if (retData.allCellVals.length < 1) {
18978
+ return '';
18979
+ }
18980
+ let arr = retData.allCellVals;
18981
+ var bzc;
18982
+ bzc = FormulaUtils.commFun.GetS(arr);
18983
+ if (bzc <= 5) {
18984
+ return bzc;
18985
+ }
18986
+ else {
18987
+ arr.sort((a, b) => a - b); //排序
18988
+ arr.shift(); // 删除首元素
18989
+ arr.pop(); // 删除尾元素
18990
+ bzc = FormulaUtils.commFun.GetS(arr); //剔除后的标准差
18991
+ }
18992
+ return bzc;
18993
+ },
18994
+ },
18964
18995
  ],
18965
18996
  };
18966
18997