def smoothvar(self, xs, ys, x):
        xs, ys = self.in_domain(xs, ys, x)

        if len(xs) > 0:
            fittedvals = np.array([self.smooth(xs, ys, xx) for xx in xs])
            sqresid = square( subtract(ys, fittedvals) )
            w = np.sum(self((xs-x)/self.h))
            v = np.sum([rr*self((xx-x)/self.h) for xx, rr in zip(xs, sqresid)])
            return v / w
        else:
            return np.nan
Handles recieving work submission and checking that it is valid
dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/sandbox/nonparametric/kernels.py/CustomKernel.smoothvar--crossover with--dataset/ETHPy150Open simplecrypto/powerpool/powerpool/stratum_server.py/StratumClient.submit_job