Learn R Programming

CoSMoS (version 2.2.0)

N: Norm minimised during distribution fitting

Description

Computes one of four fitting norms used as the objective function in fitDist.

Usage

N(par, val, dist, norm, n.points)

Value

scalar numeric; the norm value (returns 10e9 if non-finite)

Arguments

par

numeric vector of distribution parameter values

val

numeric vector of empirical data

dist

character; name of the distribution to fit (e.g. "norm", "ggamma")

norm

character; norm identifier — one of "N1", "N2", "N3", "N4"

n.points

integer; number of ECDF points used in the norm computation

See Also

fitDist