Learn R Programming

unfoldr (version 0.7.1)

setbreaks: Break vectors

Description

Construct class limits vectors

Usage

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

Value

list of class limits vectors

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\delta, \delta=maxSize/M \) or using exponentially increasing limits like \(base^i, i=1,\dots,M\). The orientation classes are defined by \(\theta_j=j\omega, \omega=\pi/(2N), j=1,\dots,N\) in the range \([0,\pi/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".

Examples

Run this code
# NOT RUN {
  setbreaks(c(8,5,7),0.935,base=0.5,kap=1.25,sizeType="exp")
  
# }

Run the code above in your browser using DataLab