Skip to content

Request of clarification over some mathematical definitions #344

@enricoteofilo

Description

@enricoteofilo

Hello.
Sorry to bother, but I was looking for explicit mathematical definitions in the documentation and I haven' t found all I was looking for. Hence I'm now asking for your support to get confirmation on some mathematical definitions.

First, can you please confirm that, even if weights1/weights2 are passed to the pair-counting functions (like Corrfunc.theory.DD or Corrfunc.mocks.DDrppi_mocks), the pair counts per-bin are not affected by them? If that's the case, as I've understood for the documentation, is the pair counts in the $n-$th bin given by the following expression?

$$DD(n) = \sum_{i\neq j}\Theta^{ij}_{n}$$

where the $\Theta$ gives 1 if the pair $i,j$ is in the $n-$th bin and 0 otherwise:

$$\Theta^{ij}_{n} = \int_{\Omega_n}d^{3}\vec{r}\delta(r-|\vec{x}_i-\vec{x}_j|)\delta(\mu-\mu_{ij})\delta(\phi-\phi_{ij})$$

I expect the $n-$th bin (that I've called $\Omega_n$) to be defined, for example for the DDsmu_mocks, as:

$$\Omega_n = [r_n-\Delta r/2,r_n+\Delta r/2]\times[\mu_n-\Delta\mu/2,\mu_n+\Delta\mu/2]\times[0,2\pi]$$

Is this the actual definition of the bin internal to the function?
If all stated above holds, can you also confirm that, although the pair counts $DD,DR,RR$ are not influenced by the optional weights, the weightavg column of the results gives the average pair weight per bin and that the definition of this average is the following?

$$w_{avg}(n) = \frac{1}{DD(n)} \sum_{i\neq j}\Theta^{ij}_{n}w_{i}w_{j}$$

I may have other inquiries on the mathematical definitions of the quantities implemented in the code. I will keep on updating this first post and reply to the thread if that's the case and IF that's ok

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions