ข้ามไปยังเนื้อหา

Lesson 46: Spike filter

English

One bad reading

  • Real sensors are not perfect. A loose wire or a flash of light can give one reading that is far too big: a spike.
  • The average of five readings is pulled up by one spike.
  • The median, the middle value after sorting, does not care about one spike.

Words for this lesson

Word Meaning
array a list of values with one name: r[0] to r[4]
sort put in order, smallest first
median the middle value of a sorted list
spike one reading that is far too high or low

เข้าสู่ระบบหรือสร้างบัญชี

IGCSE, A-Level & AP