Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

What is this

Name: Anonymous 2012-10-30 13:36


class some_kind_of_simple_filter
{
  public:

    some_kind_of_simple_filter(float coefficient_) : coefficient(coefficient_), value(0.0f) {}

    void sample(float f)
    {
      value = coefficient * value + (1.0f - coefficient) * f;
    }

    float get()
    {
      return value;
    }

  protected:

    float coefficient;
    float value;
};


/prog/, what is this kind of filter called?  I've been using it forever, and it is really nice for smoothing out sampled data.  I've just never known what it's called.

Name: Anonymous 2012-10-30 14:13

C++ code
stopped reading

Name: Anonymous 2012-10-30 14:18

Pig disgusting

Name: Anonymous 2012-10-30 14:22

That doesn't make sense. It's meaningless math operations.

Name: Anonymous 2012-10-30 14:24

exponential smoothing

Name: Anonymous 2012-10-30 14:34

wait, people post on this board!

Name: Anonymous 2012-10-30 14:34

infinite-impulse response one pole low pass filter.

Name: Anonymous 2012-10-30 14:56

>>6
No not really. A programmer named Tdavis invoked God to post in this place.

https://www.youtube.com/watch?v=9i0pMO697Zk

Name: Anonymous 2012-10-31 12:16

>>7
Thanks.

>>2-3
Thank you, also.

>>4-6,8
Thanks for trying.

Name: Anonymous 2012-10-31 13:28

>>8
No not really. A God named JESUS invoked Tdavis to post in this place.

https://www.youtube.com/watch?v=9i0pMO697Zk

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List