Calculates the cummulative probability function of the pressure amplitude from a finite number of sine waves of arbitrary individual amplitudes, given (for the upper probability) in Equation 59 of Barakat 1974, using the terminology of that paper.

1 2 |

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

`beta_n` |
is the vector of individual pressure amplitudes, 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.