fitDist: Distribution fitting

Description Usage Arguments Examples

View source: R/fitDist.R

Description

Uses Nelder-Mead simplex algorithm to minimize fitting norms.

Usage

1
2
3
4
5
6
7
8
fitDist(
  data,
  dist,
  n.points,
  norm,
  constrain,
  opts = list(algorithm = "NLOPT_LN_NELDERMEAD", xtol_rel = 1e-08, maxeval = 10000)
)

Arguments

data

value to be fitted

dist

name of the distribution to be fitted

n.points

number of points to be subsetted from ecdf

norm

norm used for distribution fitting - id ('N1', 'N2', 'N3', 'N4')

constrain

logical - constrain shape2 parametes for finite tails

opts

minimization options

Examples

1
2
x <- fitDist(rnorm(1000), 'norm', 30, 'N1', FALSE)
x

CoSMoS documentation built on May 30, 2021, 1:06 a.m.