View source: R/integrateonsphere.R

Numerical calculation of the surface integral of the function 'fun' on (parts of) the unit sphere.

1 2 3 |

`fun` |
is the input function to integrate. Must take a column matrix of theta- and phi-values, or a vector of phi-values as input, and return a vector for the paris of 'theta' and 'phi'. |

`ndim` |
is the number of dimensions of the input to 'fun'. |

`theta` |
is a vector of two elements representing the lower and upper bounds of theta (azimuth angle). Only needed if ndim==2. |

`phi` |
is a vector of two elements representing the lower and upper bounds of the phi (elevation angle). |

`R` |
is the radius of the sphere. |

`pres` |
is the desired presition of the integration. |

`l` |
is the initial lengths of the theta and phi grid. |

`incriment` |
is the factor to multiply the lengths of the grids by. |

`equal.size` |
is TRUE if all cells are to have equal size (speeds up function) and FALSE if the anglular incriment is to be equal. |

`max.cells` |
is the maximum number of cells in the grid. |

`print` |
is TRUE if the improvement of the iteration is to be printed. |

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.