R/dt_.R

Defines functions dt_

Documented in dt_

#' Non-standard student-t density
#'
#' Computes the density.
#'
#' For internal use
#'
#' @param x Numeric vector. Data set to which the density is evaluated.
#' @param df Numeric constant. Degrees of freedom (> 0, maybe non-integer)
#' @param mean Numeric constant. Location parameter.
#' @param sd Positive numeric constant. Scale parameter.
#'
#' ## The function is currently defined as
#' function(x, df, mean, sd) {
#'   dt((x - mean) / sd, df, ncp = 0) / sd
#' }
dt_ <-
  function(x, df, mean, sd) {
    dt((x - mean) / sd, df, ncp = 0) / sd
  }
konkam/BNPdensity documentation built on March 14, 2024, 7:15 a.m.