Learn R Programming

⚠️There's a newer version (1.6.5) of this package.Take me there.

rotations

The goal of rotations is to provide tools for working with rotation data. A stable version (1.4) of the rotations package is available for download from CRAN. For Windows users, the current version (1.5) of rotations can be downloaded from GitHub. Mac users will need to download the repo, compile the C++ code and install.

Installation

remotes::install_github("stanfill/rotationsC", subdir = "rotations")

Example

This is a basic example which shows you how to solve a common problem:

library(rotations)
## basic example code

Change log

  • The Maxwell-Boltzmann distribution has been added: dmaxwell, pmaxwell and rmaxwell.
  • Due to issue with the bessel functions, the Cayley distribution was previously used to approximate the matrix-Fisher distribution for large kappa. Now the Maxwell-Boltzmann distribution is used for kappa>200 and the approximation is far superior.

Copy Link

Version

Install

install.packages('rotations')

Monthly Downloads

310

Version

1.6

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Bryan Stanfill

Last Published

March 28th, 2020

Functions in rotations (1.6)

Haar

Uniform distribution
Q4

`Q4` class for storing rotation data as quaternions
Cayley

The symmetric Cayley distribution
Mises

The circular-von Mises distribution
Angular-distributions

Angular distributions
Maxwell

The modified Maxwell-Boltzmann distribution
MCMCSO3

MCMC for rotation data
Fisher

The matrix-Fisher distribution
fisher.kappa

Circular variance and concentration parameter
SO3

`SO3` class for storing rotation data as rotation matrices
discord

Measure of Discord
nickel

Nickel electron backscatter diffraction data set
rot.dist

Rotational distance
fisheretal

Transformation based pivotal bootstrap confidence region
region

Confidence and credible regions for the central orientation
mis.axis

Misorientation axis
median

Median rotation
mis.angle

Misorientation angle
drill

Drill data set
rotations

A package for working with rotation data.
UARS

Generic UARS Distribution
Arithmetic

Arithmetic operators on SO(3)
bayes.mean

Parameter estimates based on non-informative Bayes
cayley.kappa

Circular variance and concentration parameter
genR

Generate rotations
bayesCR

Bayes credible regions
center

Center rotation data
plot

Visualizing random rotations
gradient.search

Gradient optimization for rotation data
mean

Mean rotation
maxwell.kappa

Circular variance and concentration parameter
rotdist.sum

Sample distance
prentice

Transformation based asymptotic confidence region
pointsXYZ

Project rotation data onto sphere
vmises.kappa

Circular variance and concentration parameter
weighted.mean

Weighted mean rotation
project.SO3

Projection into SO(3)
head

Return the First or Last Part of an Object
skew.exp

Matrix exponential
chang

M-estimator asymptotic confidence region
tail

Return the First or Last Part of an Object
log.SO3

Rotation logarithm
zhang

M-estimator theory pivotal bootstrap confidence region