mean(trim)
去掉最大值和最小值后的平均数(Trim mean)
> s<-c(.25, 0.4, 1.00,2.00,3.00,4.00,5.00,8.00,12.00,50.00) > s [1]  0.25  0.40  1.00  2.00  3.00  4.00  5.00  8.00 12.00 50.00
> mean(s,trim=1/10) [1] 4.425
#####也就是去除s中的最大值最小值
等价于
> s<-c(.25,1.00,2.00,3.00,4.00,5.00,8.00,12.00) > mean(s) [1] 4.40625
#####
mean(s,trim=3/10)##去除s中的三对最大值最小值

相关文章:

  • 2022-12-23
  • 2021-09-25
  • 2021-11-01
  • 2021-06-29
  • 2021-05-17
  • 2021-04-07
  • 2021-12-21
  • 2021-12-09
猜你喜欢
  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
  • 2021-07-17
  • 2022-01-15
  • 2022-12-23
相关资源
相似解决方案