def integrate_box_1d(self, low, high):
if self.d != <NUM_LIT:1>:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>stdev = ravel(sqrt(self.covariance))[<NUM_LIT:0>]<EOL>normalized_low = ravel((low - self.dataset) / stdev)<EOL>normalized_high = ravel((high - self.dataset) / stdev)<EOL>value = np.mean(special.ndtr(normalized_high) -<EOL>special.ndtr(normalized_low))<EOL>return value<EOL>
Computes the integral of a 1D pdf between two bounds.

Parameters
----------
low : scalar
    Lower bound of integration.
high : scalar
    Upper bound of integration.

Returns
-------
value : scalar
    The result of the integral.

Raises
------
ValueError
    If the KDE is over more than one dimension.