R/adj.poly.R

Defines functions adj.poly

Documented in adj.poly

#' Simple polynomial adjustment term, not the series.
#' 
#' For internal use only -- not to be called by 'mrds' or 'Distance' users 
#' directly.
#'
#' @param distance perpendicular distance vector/scalar
#' @param scaling scale parameter
#' @param adj.order the adjustment order
#' 
#' @returns scalar or vector containing the polynomial adjustment term for every
#' value in \code{distance} argument
#'
#' @author Felix Petersma
adj.poly <- function(distance, scaling, adj.order) {
  return((distance / scaling) ^ adj.order)
}

Try the mrds package in your browser

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

mrds documentation built on Aug. 8, 2025, 6:39 p.m.