File: trigonometric.moment.Rd

package info (click to toggle)
r-cran-circular 0.5-1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,492 kB
  • sloc: ansic: 464; fortran: 69; sh: 13; makefile: 2
file content (45 lines) | stat: -rw-r--r-- 1,345 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
\name{trigonometric.moment}    
\title{Trigonometric Moments}
\alias{trigonometric.moment}  

\description{
Computes the specified order trigonometric moment for a set of directional data points. 
}

\usage{
trigonometric.moment(x, p = 1, center = FALSE, control.circular = list())
}

\arguments{
\item{x}{a vector of class \code{circular}.}
\item{p}{order of trigonometric moment to be computed. Default is for a first order trigonometric moment.}
\item{center}{logical, whether to compute centered moments or not.  Default is to compute an uncentered moment.}
\item{control.circular}{the attribute of the resulting object \code{mu}.}
}

\value{
Returns a list with variables mu, rho, cos, sin, p, n, call,
respectively the pth trigonometric moment's direction, resultant length,
real and imaginary components, the order, the number of observations and
the call.
}

\author{Claudio Agostinelli and Ulric Lund}

\references{
Jammalamadaka, S. Rao and SenGupta, A. (2001). Topics in Circular Statistics, Section 1.3, World Scientific Press, Singapore.
}

\seealso{
\code{\link{var.circular}}, \code{\link{mean.circular}},
\code{\link{summary.circular}}, \code{\link{mle.vonmises}} and \code{\link{rho.circular}}
}

\examples{

x <- rvonmises(100, circular(0), 5)
trigonometric.moment(x, control.circular=list(units="degrees"))

}

\keyword{math}