中位数过滤

时间:2017-06-15 09:10:16

标签: r filter median

我有下面提到的数据集,我正在使用“runmed”函数来使用中值滤波来平滑它。我可以使用runmed绘图但不能看到函数的结果值,因为我想稍后使用结果。由于runmed仅用于散布图平滑,是否还有其他方法可以将中值滤波结果保存到其他矢量中以进行进一步处理?谢谢

   runmed(x, k, endrule = c("median", "keep", "constant"),
   algorithm = NULL, print.level = 0)

 [1] 5.010650 5.010634 5.010668 5.010663 5.010671 5.010672 5.010674 5.010672 5.010676 5.010679 5.010681
 [12] 5.010687 5.010695 5.010705 5.010730 5.010716 5.010740 5.010751 5.010764 5.010771 5.010779 5.010777
 [23] 5.010775 5.010775 5.010780 5.010777 5.010777 5.010777 5.010783 5.010800 5.010810 5.010816 5.010828
 [34] 5.010835 5.010840 5.010838 5.010838 5.010837 5.010842 5.010842 5.010840 5.010842

0 个答案:

没有答案