% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fitting.R
\name{N}
\alias{N}
\title{Norm minimised during distribution fitting}
\usage{
N(par, val, dist, norm, n.points)
}
\arguments{
\item{par}{numeric vector of distribution parameter values}

\item{val}{numeric vector of empirical data}

\item{dist}{character; name of the distribution to fit (e.g. \code{"norm"},
\code{"ggamma"})}

\item{norm}{character; norm identifier — one of \code{"N1"}, \code{"N2"},
\code{"N3"}, \code{"N4"}}

\item{n.points}{integer; number of ECDF points used in the norm computation}
}
\value{
scalar numeric; the norm value (returns \code{10e9} if non-finite)
}
\description{
Computes one of four fitting norms used as the objective function in
\code{\link{fitDist}}.
}
\seealso{
\code{\link{fitDist}}
}
\keyword{internal}
