Exemplo n.º 1
0
def get_filter_mag(name, kalmanRMag, kalmanQMag, windowSizeMag):
    if name == "raw":
        return raw.RawFilter()
    if name == "kalman":
        return kalman.KalmanFilter(kalmanRMag, kalmanQMag)
    if name == "movingAverage":
        return movingAverage.MovingAverageFilter(windowSizeMag)
Exemplo n.º 2
0
def get_filter_ble(name, noOfBeacons, kalmanRBLE, kalmanQBLE, windowSizeBLE):
    if name == "raw":
        return [raw.RawFilter() for i in range(noOfBeacons)]
    if name == "kalman":
        return [
            kalman.KalmanFilter(kalmanRBLE, kalmanQBLE)
            for i in range(noOfBeacons)
        ]
    if name == "movingAverage":
        return [
            movingAverage.MovingAverageFilter(windowSizeBLE)
            for i in range(noOfBeacons)
        ]