Directional7.3 package

A Collection of Functions for Directional Data Analysis

Arotation

Rotation axis and angle of rotation given a rotation matrix

bic.mixvmf

BIC to choose the number of components in a model based clustering usi...

circ.cor1

Circular correlations between two circular variables

circ.cors1

Circular correlations between two circular variables

circ.dcor

Circular distance correlation between two circular variables

circ.summary

Summary statistics for circular data

circlin.cor

Circular-linear correlation

colspml.mle

Column-wise MLE of the angular Gaussian and the von Mises Fisher distr...

colwatsons

Column-wise uniformity tests for circular data

conc.test

A test for testing the equality of the concentration parameter among g...

cosap

Conversion of cosines to azimuth and plunge

cosnn

The k-nearest neighbours using the cosinus distance

desag

Density of the spherical ESAG and Kent distributions

dirda.cv

Cross validation for estimating the classification rate

dirda

Prediction of a new observation using discriminant analysis based on s...

Directional-package

This is an R package that provides methods for the statistical analysi...

dirknn

k-NN algorithm using the arc cosinus distance

dirknn.tune

k-NN algorithm using the arc cosinus distance. Tuning the k neigbours

dmixvmf

Density of a mixture of rotationally symmetric distributions

dsespc

Density of the SESPC distribution

dvm

Density of some circular distributions

dvmf

Density of some (hyper-)spherical distributions

dwood

Density of the Wood bimodal distribution on the sphere

esag.contour

Contour plot (on the plane) of the ESAG and Kent and ESAG distribution...

esag.mle

MLE of the ESAG distribution

esag.reg

Spherical regression using the ESAG distribution

etoa

Transform unit vectors to angular data

euclid.inv

Inverse of the Euclidean transformation

euclid

Euclidean transformation

eul2rot

Construct a rotation matrix on SO(3) from the Euler angles.

f.rbing

Simulating from a Bingham distribution

fb.saddle

Saddlepoint approximations of the Fisher-Bingham distributions

fishkent

Hypothesis test for von Mises-Fisher distribution over Kent distributi...

group.gof

Goodness of fit test for grouped data

group.vm

Summary statistics for grouped circular data

habeck.rot

Generation of three-dimensional random rotations using Habeck's algori...

haversine.dist

Harvesine distance matrix

hcf.aov

Analysis of variance for (hyper-)spherical data

hcf.boot

Bootstrap 2-sample mean test for (hyper-)spherical data

hcf.circaov

Analysis of variance for circular data

hcf.perm

Permutation based 2-sample mean test for (hyper-)spherical data

hcfboot

Bootstrap ANOVA for (hyper-)spherical data

hcfcirc.boot

Bootstrap 2-sample mean test for circular data

hcfcirc.perm

Permutation based 2-sample mean test for circular data

hcfcircboot

Bootstrap ANOVA for circular data

hspher.reg

Hyper spherical-spherical regression

iag.reg

Spherical regression using rotationally symmetric distributions

iagesag

Hypothesis test for IAG distribution over the ESAG distribution

kent.logcon

Logarithm of the Kent distribution normalizing constant

kent.mle

MLe of the Kent distribution

knn.reg

k-NN regression with Euclidean or (hyper-)spherical response and or pr...

knnreg.tune

Tuning of the k-NN regression with Euclidean or (hyper-)spherical resp...

kuiper

Uniformity tests for circular data.

lambert.inv

Inverse of Lambert's equal area projection

lambert

Lambert's equal area projection

makefolds

Generate random folds for cross-validation

matrixfisher.mle

MLE of the Matrix Fisher distribution on SO(3)

meandir.test

Test for a given mean direction

mediandir

Fast calculation of the spherical and hyperspherical median

mixvmf.contour

Contour plot of a mixture of von Mises-Fisher distributions model for ...

mixvmf.mle

Mixtures of rotationally symmetric distributions

multivm.mle

MLE of some circular distributions with multiple samples

nsmedian

Normalised spatial median for directional data

oceania

maps of the world and the continents

pc.test

Hypothesis test for SIPC distribution over the SESPC distribution

ptest

Projections based test of uniformity

purka.mle

MLE of the Purkayashta distribution

pvm

Cumulative distribution function of circular distributions

quat2rot

Converting an unsigned unit quaternion to rotation matrix on SO(3)

racg

Angular central Gaussian random values simulation

rayleigh

Rayleigh's test of uniformity

rbingham

Simulation from a Bingham distribution using any symmetric matrix A

read.fbm

Read a file as a Filebacked Big Matrix

resag

Simulation of random values from the ESAG distribution

rfb

Simulation of random values from a spherical Fisher-Bingham distributi...

rkent

Simulation of random values from a spherical Kent distribution

rmatrixfisher

Simulation from a Matrix Fisher distribution on SO(3)

rmixvmf

Simulation of random values from a mixture of rotationally symmetric d...

rot.matrix

Rotation matrix from a rotation axis and angle of rotation

rot2eul

Compute the Euler angles from a rotation matrix on SO(3).

rot2quat

Converting a rotation matrix on SO(3) to an unsigned unit quaternion

rotation

Rotation matrix to rotate a spherical vector along the direction of an...

rsespc

Simulation of random values from the SESPC distribution

rsop

Random sample of matrices in SO(p)

rvmf

Simulation of random values from rotationally symmetric distributions

rvonmises

Simulation of random values from some circular distributions

score.cipc

Score test for many simple CIPC and SPML regressions

sespc.mle

MLE of the SESPC distribution

sespc.reg

Spherical regression using the SESPC distribution

spcauchy2test

Two sample location test for (hyper-)spherical data

spher.cor

Spherical-spherical correlation

spher.dcor

Spherical and hyper-spherical distance correlation

spher.esag.contour

Contour plot (on the sphere) of the ESAG and Kent distributions

spher.mixvmf.contour

Contour plot (on the sphere) of a mixture of von Mises-Fisher distribu...

spher.reg

Spherical-Spherical regression

spher.sespc.contour

Contour plot (on the sphere) of the SESPC distribution

spher.vmf.contour

Contour plot (on the sphere) of some spherical rotationally symmetric ...

spherconc.test

Test for equality of concentration parameters for spherical data

sphereplot

Interactive 3D plot of spherical data

spml.fbed

Forward Backward Early Dropping selection for circular data using the ...

spml.mle

MLE of some circular distributions

spml.reg

Circular or angular regression

spml.regs

Many simple circular or angular regressions

tang.conc

A test for testing the equality of the concentration parameter among g...

vec

Generation of unit vector(s) with a given angle

visual.check

Check visually whether matrix Fisher samples is correctly generated or...

vm.kde

Kernel density estimation of circular data with a von Mises kernel

vm.nb

Naive Bayes classifiers for directional data

vmf.contour

Contour plots of some rotationally symmetric distributions

vmf.kde

Kernel density estimation for (hyper-)spherical data using a von Mises...

vmf.kerncontour

Contour plot of spherical data using a von Mises-Fisher kernel density...

vmf.mle

MLE of (hyper-)spherical rotationally symmetric distributions

vmfkde.tune

Tuning of the bandwidth parameter in the von Mises-Fisher kernel for (...

vmfreg

(Hyper-)spherical regression using the rotational symmetric distributi...

vmkde.tune

Tuning of the bandwidth parameter in the von Mises kernel for circular...

vmnb.pred

Prediction with some naive Bayes classifiers for circular data

wood.mle

MLE of the Wood bimodal distribution on the sphere

A collection of functions for directional data (including massive data, with millions of observations) analysis. Hypothesis testing, discriminant and regression analysis, MLE of distributions and more are included. The standard textbook for such data is the "Directional Statistics" by Mardia, K. V. and Jupp, P. E. (2000). Other references include: a) Paine J.P., Preston S.P., Tsagris M. and Wood A.T.A. (2018). "An elliptically symmetric angular Gaussian distribution". Statistics and Computing 28(3): 689-697. <doi:10.1007/s11222-017-9756-4>. b) Tsagris M. and Alenazi A. (2019). "Comparison of discriminant analysis methods on the sphere". Communications in Statistics: Case Studies, Data Analysis and Applications 5(4):467--491. <doi:10.1080/23737484.2019.1684854>. c) Paine J.P., Preston S.P., Tsagris M. and Wood A.T.A. (2020). "Spherical regression models with general covariates and anisotropic errors". Statistics and Computing 30(1): 153--165. <doi:10.1007/s11222-019-09872-2>. d) Tsagris M. and Alenazi A. (2024). "An investigation of hypothesis testing procedures for circular and spherical mean vectors". Communications in Statistics-Simulation and Computation, 53(3): 1387--1408. <doi:10.1080/03610918.2022.2045499>. e) Yu Z. and Huang X. (2024). A new parameterization for elliptically symmetric angular Gaussian distributions of arbitrary dimension. Electronic Journal of Statistics, 18(1): 301--334. <doi:10.1214/23-EJS2210>. f) Tsagris M. and Alzeley O. (2025). "Circular and spherical projected Cauchy distributions: A Novel Framework for Circular and Directional Data Modeling". Australian & New Zealand Journal of Statistics, 67(1): 77--103. <doi:10.1111/anzs.12434>. g) Tsagris M., Papastamoulis P. and Kato S. (2025). "Directional data analysis: spherical Cauchy or Poisson kernel-based distribution". Statistics and Computing, 35:51. <doi:10.1007/s11222-025-10583-0>.

  • Maintainer: Michail Tsagris
  • License: GPL (>= 2)
  • Last published: 2025-10-22