Calculates the probability density function of the total intensity (square of pressure amplitude) from a finite number of sine waves of arbitrary individual amplitudes, given in Equation 64 of Barakat 1974, using the terminology of that paper.

1 2 |

`h` |
is the argument (superimposed intensity). |

`beta_n2` |
is the vector of individual intensities, or a single number giving the number of significant scatterers. |

`N` |
is the number of positive roots of the Bessel function of the first kind. |

`max.memory` |
is the maximum memory occupied by the function before splitting into a loop for each value of 'r'. |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.