class LowPassFilter:

    def __init__(self, beta, initial_value=0):
        self._value = initial_value
        self._beta = beta

    def add_sample(self, sample):
        self._value += self._beta * (sample - self._value)

    def get_value(self):
        return self._value

bab7a98820f30123f498d0037cd88e885ca66498
<mask token>

class LowPassFilter:
    <mask token>

    def add_sample(self, sample):
        self._value += self._beta * (sample - self._value)
    <mask token>

class LowPassFilter:

    def __init__(self, beta, initial_value=0):
        self._value = initial_value
        self._beta = beta

    def add_sample(self, sample):
        self._value += self._beta * (sample - self._value)
    <mask token>

class LowPassFilter:

    def __init__(self, beta, initial_value=0):
        self._value = initial_value
        self._beta = beta

    def add_sample(self, sample):
        self._value += self._beta * (sample - self._value)

    def get_value(self):
        return self._value
