def pdf(self, X):
        """
        .. todo::

            WRITEME properly

        This dataset can generate an infinite amount of examples.
        This function gives the pdf from which the examples are drawn.
        """
        x = X[:, 0]
        y = X[:, 1]
        rval = T.exp(-T.sqr(y - T.cos(x)) / (2. * (self.std ** 2.)))
        rval /= N.sqrt(2.0 * N.pi * (self.std ** 2.))
        rval /= (self.max_x - self.min_x)
        rval *= x < self.max_x
        rval *= self.min_x > x
        return rval
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/datasets/cos_dataset.py/CosDataset.pdf/swapped operands of `>`