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

View source: R/helper_functions.R

MakeCentersR Documentation

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)

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)

Value

A vector of kernel centers.


scdensity documentation built on Sept. 12, 2024, 7:35 a.m.