setbreaks: Break vectors

Description Usage Arguments Details Value Author(s) Examples

View source: R/unfolding.R

Description

Construct class limits vectors

Usage

1
setbreaks(nclass, maxSize, base = NULL, kap = 1, sizeType = c("linear", "exp"))

Arguments

nclass

number of classes

maxSize

maximum of size values

base

constant for size class construction

kap

constant for shape class construction

sizeType

either linear or exp, default is linear

Details

The function constructs the class limits for the size, shape and orientation parameters. One can either define "linear" class limits of the sizes as a_i=iδ, δ=maxSize/M or using exponentially increasing limits like base^i, i=1,…,M. The orientation classes are defined by θ_j=jω, ω=π/(2N), j=1,…,N in the range [0,π/2], where M,N are the number of size classes and, respectively, the number of orientation classes. The argument base must not be NULL if sizeType equals "exp".

Value

list of class limits vectors

Author(s)

M. Baaske

Examples

1
2
  setbreaks(c(8,5,7),0.935,base=0.5,kap=1.25,sizeType="exp")
  

Example output

$size
[1] 0.00390625 0.00781250 0.01562500 0.03125000 0.06250000 0.12500000 0.25000000
[8] 0.50000000

$angle
[1] 0.0000000 0.3141593 0.6283185 0.9424778 1.2566371 1.5707963

$shape
[1] 0.00000000 0.08782688 0.20888870 0.34676002 0.49682385 0.65665908 0.82473896
[8] 1.00000000

unfoldr documentation built on Sept. 25, 2021, 1:07 a.m.