https://github.com/seungwoo-stat/rvmf
Fast Generation of von Mises-Fisher Distributed Pseudo-Random Vectors
https://github.com/seungwoo-stat/rvmf
random-sampling sphere von-mises-fisher
Last synced: about 1 month ago
JSON representation
Fast Generation of von Mises-Fisher Distributed Pseudo-Random Vectors
- Host: GitHub
- URL: https://github.com/seungwoo-stat/rvmf
- Owner: seungwoo-stat
- License: gpl-3.0
- Created: 2023-02-01T05:28:30.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-28T00:12:29.000Z (about 2 years ago)
- Last Synced: 2025-10-22T04:45:53.036Z (6 months ago)
- Topics: random-sampling, sphere, von-mises-fisher
- Language: R
- Homepage: https://cran.r-project.org/package=rvMF
- Size: 59.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# rvMF
[](https://CRAN.R-project.org/package=rvMF) [](https://CRAN.R-project.org/package=rvMF)
Fast Generation of von Mises-Fisher Distributed Pseudo-Random Vectors
Generates pseudo-random vectors that follow an arbitrary von Mises-Fisher distribution on a sphere. This method is fast and efficient when generating a large number of pseudo-random vectors. Functions to generate random variates and compute density for the distribution of an inner product between von Mises-Fisher random vector and its mean direction are also provided. Details are in Kang and Oh (2024).
Visit [this repo](https://github.com/seungwoo-stat/rvMF-paper) for code to reproduce the figures and tables from the paper Kang and Oh (2024).
### Installation
Version 0.1.1 of this package is available on [CRAN](https://cran.r-project.org/package=rvMF):
``` r
install.packages("rvMF")
library(rvMF)
```
To use the development version (currently equivalent to the CRAN version) of this package:
``` r
devtools::install_github("seungwoo-stat/rvMF")
library(rvMF)
```
### Reference
- Seungwoo Kang and Hee-Seok Oh. (2024) [Novel Sampling Method for the von Mises--Fisher Distribution](https://doi.org/10.1007/s11222-024-10419-3). *Statistics and Computing* **34**(3), 106.