
Last chance! 50% off unlimited learning
Sale ends in
Density, distribution function and random generation for the the generic uniform axis-random spin (UARS) class of distributions.
duars(R, dangle, S = id.SO3, kappa = 1, ...)puars(R, pangle = NULL, S = id.SO3, kappa = 1, ...)
ruars(n, rangle, S = NULL, kappa = 1, space = "SO3", ...)
Value at which to evaluate the UARS density.
The function to evaluate the angles from, e.g. dcayley, dvmises, dfisher, dhaar.
central orientation of the distribution.
concentration parameter.
additional arguments.
The form of the angular density, e.g. pcayley, pvmises, pfisher, phaar.
number of observations. If length(n)>1
, the length is taken to be the number required.
The function from which to simulate angles, e.g. rcayley, rvmises, rhaar, rfisher.
indicates the desired representation: matrix ("SO3") or quaternion ("Q4").
gives the density
gives the distribution function. If pangle is left empty, the empirical CDF is returned.
generates random deviates
For the rotation R with central orientation S and concentration
bingham09
For more on the angular distribution options see Angular-distributions.
# NOT RUN {
#Generate random rotations from the Cayley-UARS distribution with central orientation
#rotated about the y-axis through pi/2 radians
S <- as.SO3(c(0, 1, 0), pi/2)
Rs <- ruars(20, rangle = rcayley, kappa = 1, S = S)
rs <- mis.angle(Rs-S) #Find the associated misorientation angles
frs <- duars(Rs, dcayley, kappa = 10, S = S) #Compute UARS density evaluated at each rotations
plot(rs, frs)
cdf <- puars(Rs, pcayley, S = S) #By supplying 'pcayley', it is used to compute the
plot(rs, cdf) #the CDF
ecdf <- puars(Rs, S = S) #No 'puars' arguement is supplied so the empirical
plot(rs, ecdf) #cdf is returned
# }
Run the code above in your browser using DataLab