R/linbin.R

# Extracted from KernSmooth KernSmooth/R/all.R
## original file Copyright (C) M. P. Wand
## modifications for use with R copyright (C) B. D. Ripley
## Unlimited use and distribution (see LICENCE).

linbin <- function (X, gpoints, truncate = TRUE) 
{
    n <- length(X)
    M <- length(gpoints)
    if (truncate) 
        trun <- 1L
    else 0L
    a <- gpoints[1L]
    b <- gpoints[M]
    .Fortran("linbin", as.double(X), as.integer(n), as.double(a), 
        as.double(b), as.integer(M), as.integer(trun), double(M), PACKAGE="hdrcde")[[7]]
}

Try the hdrcde package in your browser

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

hdrcde documentation built on Jan. 18, 2021, 9:05 a.m.