R/poly.R

Defines functions poly.pdf poly.cdf

Documented in poly.cdf poly.cdf poly.pdf poly.pdf

#'@name poly
#'@rdname poly
#'@aliases
#'poly
#'poly.cdf
#'poly.pdf
#'
#'@title Poly
#'@description
#'Polynomial function is a core type function.
#'\cr
#'It's CDF formula is: y = (x / a) ^ b
#'\cr
#'It's PDF formula is: y = (x / a) ^ (b- 1) * b / a
#'@param x Vector of x parametres
#'@param a adjusts the curve slope
#'@param b adjusts the curve slope
#'
#'@return Vector of result vaues
NULL

#'@rdname poly
#'@export
poly.cdf <- function(x, a, b) {
  return((x / a) ^ b)
}
#'@rdname poly
#'@export
poly.pdf <- function(x, a, b) {
  return((x / a) ^ (b- 1) * b / a)
}
LuchTiarna/EFPFF documentation built on Oct. 4, 2017, 4:03 p.m.