Calculates the cummulative probability function of the total intensity (square of pressure amplitude) from a finite number of sine waves of arbitrary individual amplitudes, given (for the upper probability) in Equation 65 of Barakat 1974, using the terminology of that paper. NOTE: The expression in Equation 65 in Barakat 1974 an error. The argument h_0 should be sqrt(h_0).

1 2 |

`h_0` |
is the argument (superimposed pressure amplitude). |

`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.