R/mag.R

Defines functions mag.telemetry

Documented in mag.telemetry

# mag.numeric <- function(x)
# {
#   x <- cbind(x)
#   x <- norm(x,type="F")
#   return(x)
# }
#
# mag.complex <- function(x)
# {
#   x <- cbind(x)
#   x <- Adj(x) %*% x
#   x <- diag(x,nrow(x))
#   x <- sum(x)
#   x <- sqrt(x)
#   return(x)
# }

# magnitude (for residuals)
mag.telemetry <- function(x,axes=c("x","y"),...)
{
  x <- get.telemetry(x,axes=axes)
  x <- rowSums(x^2)
  x <- sqrt(x)
  return(x)
}

Try the ctmm package in your browser

Any scripts or data that you put into this service are public.

ctmm documentation built on Sept. 24, 2023, 1:06 a.m.