I want to measure the correlation between two 1D point processes $x$ and $y$. Ordinarily I could use the bivariate K-function
$K(t) = \frac{T}{n_xn_y} \sum_{i=1}^{n_x} \sum_{j=1}^{n_y} w(x_i,y_j) I[d(x_i,y_j)<t]$
where $n_x$ is the number of observations in $x$ and $n_y$ is the number of observations in $y$. Deviation from $K(t)=t$ is an indication of correlation between the two point processes.
However, my analysis is complicated by the fact that the unconditional distributions of the point processes are non-uniform. They each have a characteristic distribution of intervals between observations, which could be different for $x$ and $y$.
To make things more complicated, the intensities vary over the time period (for example, the intensity might be low around midnight and higher during daylight hours).
Assuming I have enough data to get good estimates of the unconditional distributions of $x$ and $y$, and of the way that intensities vary across time, is there a way to take this into account?