Suppose I have $50$ training points $x_1$, $x_2,\ldots,x_{50}$ and they are distributed via bimodal Gaussian on real line. Now, given a new point, for $1NN$, I am trying to find a interval around $x$ so that it contains exactly 1 point from my training points.
From some online lecture notes, i.e., this one, I know the unconditioned density can be computed as $$ P(x)=\frac{1}{50V} $$ where $V$ is the length of the interval around $x$ which contains 1 point from training set.
I am trying to compute $P(x)$ but got confused on how to compute $V$.