Пример #1
0
def fit_clock_offsets(x, y, width):
    drifts, offsets = util.windowed_least_squares(x, y, width)

    del drifts
    mask = numpy.abs(y - offsets) > arguments.outlier_threshold
    del offsets

    return util.windowed_least_squares(x, y, width, mask)
Пример #2
0
    def fit_clock_offsets(self, x, y, width):
        """ Generate clock offsets to fit the idealized pseudoranges.
        x, y -- data points
        width -- width of the sliding window.
        """
        drifts, offsets = util.windowed_least_squares(x, y, width)

        del drifts
        mask = numpy.abs(y - offsets) > self._outlier_threshold
        del offsets

        return util.windowed_least_squares(x, y, width, mask)