| Title: | Mobius Transport for Directional Data |
|---|---|
| Description: | Density evaluation, random generation, and maximum likelihood estimation for the Mobius-von Mises-Fisher and isotropic scaled von Mises-Fisher distributions on the hypersphere, introduced in Garcia-Portugues and Kato (2026) <doi:10.48550/arXiv.2607.29280>. Both distributions arise from Mobius transport of a von Mises-Fisher distribution. |
| Authors: | Michail Tsagris [aut, cre] |
| Maintainer: | Michail Tsagris <[email protected]> |
| License: | GPL (>= 2) |
| Version: | 1.0 |
| Built: | 2026-10-09 11:41:17 UTC |
| Source: | https://github.com/cran/Mobius |
Density evaluation, random generation, and maximum likelihood estimation for the Mobius-von Mises-Fisher and isotropic scaled von Mises-Fisher distributions on the hypersphere, introduced in Garcia-Portugues and Kato (2026). Both distributions arise from Mobius transport of a von Mises-Fisher distribution.
| Package: | Mobius |
| Type: | Package |
| Version: | 1.0 |
| Date: | 2026-09-18 |
Michail Tsagris <[email protected]>.
Michail Tsagris [email protected]
Garcia-Portugues E. and Kato S. (2026). Mobius transport on spheres. arXiv preprint arXiv:2607.29280.
Density of the isotropic scaled von Mises-Fisher distribution.
disvmf(y, mu, kappa, alpha, logden = FALSE)disvmf(y, mu, kappa, alpha, logden = FALSE)
y |
A matrix or a vector with the data expressed in Euclidean coordinates, i.e. unit vectors. |
mu |
The |
kappa |
The concentration parameter ( |
alpha |
The |
logden |
If you the logarithm of the density values set this to TRUE. |
The density of the Mobius-von Mises-Fisher distribution is computed.
A vector with the (log) density values of y.
Michail Tsagris.
R implementation and documentation: Michail Tsagris [email protected].
Garcia-Portugues E. and Kato S. (2026). Mobius transport on spheres. https://arxiv.org/pdf/2607.29280
mu <- c(0.6, 0.8, 0) y <- risvmf(100, mu, 10, 2) f <- disvmf(y, mu, 10, 2)mu <- c(0.6, 0.8, 0) y <- risvmf(100, mu, 10, 2) f <- disvmf(y, mu, 10, 2)
Density of the Mobius-von Mises-Fisher distribution.
dmvmf(y, mu1, mu2, kappa, rho, logden = FALSE)dmvmf(y, mu1, mu2, kappa, rho, logden = FALSE)
y |
A matrix or a vector with the data expressed in Euclidean coordinates, i.e. unit vectors. |
mu1 |
The |
mu2 |
The |
kappa |
The concentration parameter ( |
rho |
The |
logden |
If you the logarithm of the density values set this to TRUE. |
The density of the Mobius-von Mises-Fisher distribution is computed.
A vector with the (log) density values of y.
Michail Tsagris.
R implementation and documentation: Michail Tsagris [email protected].
Garcia-Portugues E. and Kato S. (2026). Mobius transport on spheres. https://arxiv.org/pdf/2607.29280
mu1 <- c(1, 0, 0) mu2 <- c(0.6, 0.8, 0) y <- rmvmf(100, mu1, mu2, 5, 0.5) f <- dmvmf(y, mu1, mu2, 5, 0.5)mu1 <- c(1, 0, 0) mu2 <- c(0.6, 0.8, 0) y <- rmvmf(100, mu1, mu2, 5, 0.5) f <- dmvmf(y, mu1, mu2, 5, 0.5)
Contour plot (on the sphere) of the isotropic scaled von Mises-Fisher distribution.
isvmf.contour(mu, kappa, alpha, bgcol = "snow", dat = NULL, col = NULL, lat = 50, long = 50)isvmf.contour(mu, kappa, alpha, bgcol = "snow", dat = NULL, col = NULL, lat = 50, long = 50)
mu |
The mean direction |
kappa |
The |
alpha |
The |
bgcol |
The color of the surface of the sphere. |
dat |
If you have you want to plot supply them here. This has to be a numerical matrix with three columns, i.e. unit vectors. |
col |
If you supplied data then choose the color of the points. If you did not choose a color, the points will appear in red. |
lat |
A positive number determing the range of degrees to move left and right from the latitude center. See the example to better understand this argument. |
long |
A positive number determing the range of degrees to move up and down from the longitude center. See the example to better understand this argument. |
The goal of this function is for the user to see how the isotropic scaled von Mises-Fisher distribution looks like on the sphere.
A plot containing the contours of the distribution.
Michail Tsagris.
R implementation and documentation: Michail Tsagris [email protected].
Garcia-Portugues E. and Kato S. (2026). Mobius transport on spheres. https://arxiv.org/pdf/2607.29280
mu <- c(0.6, 0.8, 0) isvmf.contour(mu = mu, kappa = 20, alpha = 5, lat = 20, long = 20)mu <- c(0.6, 0.8, 0) isvmf.contour(mu = mu, kappa = 20, alpha = 5, lat = 20, long = 20)
MLE of the isotropic scaled von Mises-Fisher distribution.
isvmf.mle(y, maxit = 1000, tol = 1e-6)isvmf.mle(y, maxit = 1000, tol = 1e-6)
y |
A matrix with directional data, i.e. unit vectors. |
maxit |
The maximum number of iterations allowed. |
tol |
The tolerance value at which to terminate the algorithm. |
The functions estimates the parameters of a fitted MLE of the isotropic scaled von Mises-Fisher distribution The function employs a combination of the fixed points iteration algorithm and the optim() function.
A list including:
mu |
The |
kappa |
The |
alpha |
The |
loglik |
The maximum log-likelihood value. |
iters |
The number of iterations performed. |
Michail Tsagris and Zehao Yu.
R implementation and documentation: Michail Tsagris [email protected].
Garcia-Portugues E. and Kato S. (2026). Mobius transport on spheres. https://arxiv.org/pdf/2607.29280
mu <- c(0.6, 0.8, 0) y <- risvmf(1000, mu, 5, 0.5) isvmf.mle(y)mu <- c(0.6, 0.8, 0) y <- risvmf(1000, mu, 5, 0.5) isvmf.mle(y)
Contour plot (on the sphere) of the Mobius-von Mises-Fisher distribution.
mvmf.contour(mu1, mu2, kappa, rho, bgcol = "snow", dat = NULL, col = NULL, lat = 50, long = 50)mvmf.contour(mu1, mu2, kappa, rho, bgcol = "snow", dat = NULL, col = NULL, lat = 50, long = 50)
mu1 |
The |
mu2 |
The |
kappa |
The |
rho |
The |
bgcol |
The color of the surface of the sphere. |
dat |
If you have you want to plot supply them here. This has to be a numerical matrix with three columns, i.e. unit vectors. |
col |
If you supplied data then choose the color of the points. If you did not choose a color, the points will appear in red. |
lat |
A positive number determing the range of degrees to move left and right from the latitude center. See the example to better understand this argument. |
long |
A positive number determing the range of degrees to move up and down from the longitude center. See the example to better understand this argument. |
The goal of this function is for the user to see how the isotropic scaled von Mises-Fisher distribution looks like on the sphere.
A plot containing the contours of the distribution. The green box is the , and the
red box is the .
Michail Tsagris.
R implementation and documentation: Michail Tsagris [email protected].
Garcia-Portugues E. and Kato S. (2026). Mobius transport on spheres. https://arxiv.org/pdf/2607.29280
mu1 <- c(1, 0, 0) mu2 <- c(0.6, 0.8, 0) mvmf.contour(mu1 = mu1, mu2 = mu2, kappa = 10, rho = 0.5, lat = 20, long = 20)mu1 <- c(1, 0, 0) mu2 <- c(0.6, 0.8, 0) mvmf.contour(mu1 = mu1, mu2 = mu2, kappa = 10, rho = 0.5, lat = 20, long = 20)
MLE of the Mobius-von Mises-Fisher distribution.
mvmf.mle(y, maxit = 1000, tol = 1e-6) mvmf1.mle(y, maxit = 1000, tol = 1e-6)mvmf.mle(y, maxit = 1000, tol = 1e-6) mvmf1.mle(y, maxit = 1000, tol = 1e-6)
y |
A matrix with directional data, i.e. unit vectors. |
maxit |
The maximum number of iterations allowed. |
tol |
The tolerance value at which to terminate the algorithm. |
The functions estimates the parameters of a fitted Mobius-von Mises-Fisher distribution.
The function employs a combination of the fixed points iteration algorithm and the
optim() function. The mvmfm1.mle() function assumes that .
A list including:
mu1 |
The |
mu2 |
The |
kappa |
The |
rho |
The |
loglik |
The maximum log-likelihood value. |
iters |
The number of iterations performed. |
In the case of the mvmf1.mle() one is returned.
Michail Tsagris and Zehao Yu.
R implementation and documentation: Michail Tsagris [email protected].
Garcia-Portugues E. and Kato S. (2026). Mobius transport on spheres. https://arxiv.org/pdf/2607.29280
mu1 <- c(1, 0, 0) mu2 <- c(0.6, 0.8, 0) y <- rmvmf(1000, mu1, mu2, 5, 0.5) mvmf.mle(y)mu1 <- c(1, 0, 0) mu2 <- c(0.6, 0.8, 0) y <- rmvmf(1000, mu1, mu2, 5, 0.5) mvmf.mle(y)
Simulation of random values from the isotropic scaled von Mises-Fisher distribution.
risvmf(n, mu, kappa, alpha)risvmf(n, mu, kappa, alpha)
n |
The sample size. |
mu |
The |
kappa |
The concentration parameter ( |
alpha |
The |
The isotropic scaled vMF distribution uses a straightforward algorithm to generate random vectors.
A matrix with the simulated data.
Michail Tsagris.
R implementation and documentation: Michail Tsagris [email protected].
Garcia-Portugues E. and Kato S. (2026). Mobius transport on spheres. https://arxiv.org/pdf/2607.29280
mu <- c(0.6, 0.8, 0) y <- risvmf(100, mu, 10, 2)mu <- c(0.6, 0.8, 0) y <- risvmf(100, mu, 10, 2)
Simulation of random values from the Mobius-von Mises-Fisher distribution.
rmvmf(n, mu1, mu2, kappa, rho)rmvmf(n, mu1, mu2, kappa, rho)
n |
The sample size. |
mu1 |
The |
mu2 |
The |
kappa |
The concentration parameter ( |
rho |
The |
The Mobius-vMF distribution uses a straight algorithm to generate random vectors.
A matrix with the simulated data.
Michail Tsagris.
R implementation and documentation: Michail Tsagris [email protected].
Garcia-Portugues E. and Kato S. (2026). Mobius transport on spheres. https://arxiv.org/pdf/2607.29280
mu1 <- c(1, 0, 0) mu2 <- c(0.6, 0.8, 0) y <- rmvmf(100, mu1, mu2, 5, 0.5)mu1 <- c(1, 0, 0) mu2 <- c(0.6, 0.8, 0) y <- rmvmf(100, mu1, mu2, 5, 0.5)