Learn R Programming

scdensity (version 1.0.3)

MakeCenters: Create a vector of kernel centers covering [LB, UB].

Description

Make the spacing as large as possible without going over width. If symmetric, ensure we have an even number of centers that are symmetric around PoS.

Usage

MakeCenters(LB, UB, width, minspace, PoS = NULL)

Value

A vector of kernel centers.

Arguments

LB

The lower bound.

UB

The upper bound.

width

The maximum possible spacing.

minspace

The minimum allowable spacing.

PoS

Point of symmetry (default NULL)