fitdist
"By"
, groupvar)"By"
, groupvar, Name, Value)Create probability distribution object.
pd = fitdist (x, distname)
creates a probability
distribution distribution object by fitting the distribution specified by
distname to the data in vector x.
pd = fitdist (x, distname, Name, Value)
creates the probability distribution object with additional options specified
by one or more Name-Value
pair arguments listed below.
Name | Value | |
---|---|---|
"distribution" | A character vector specifying the distribution type for which to estimate parameters. | |
"Ntrials" | A scalar specifying the number of trials for the corresponding element of x for the binomial distribution. | |
"theta" | A scalar specifying the location parameter for the generalized Pareto distribution. | |
"mu" | A scalar specifying the location parameter for the half-normal distribution. | |
"censoring" | A vector of the same size as x
indicating censored data in x. By default it is
censor = zeros (size (x)) . | |
"frequency" | A vector of nonnegative integer counts of
the same size as x used as frequency observations. By default it is
freq = ones (size (x)) . | |
"alpha" | A scalar in the range , as the significance level for the confidence interval pci. By default it is 0.05 corresponding to 95% confidence intervals. | |
"options" | A structure specifying the control
parameters for the iterative algorithm used to compute ML estimates with the
fminsearch function. |
[pdca, gn, gl] = fitdist (x, distname,
creates probability distribution objects by
fitting the distribution specified by distname to the data in x
based on the grouping variable groupvar. It returns a cell array of
fitted probability distribution object, pdca, a cell array of group
labels, gn, and a cell array of grouping variable levels, gl.
"By"
, groupvar)
[pdca, gn, gl] = fitdist (x, distname,
returns the same
output arguments using additional options specified by one or more
"By"
, groupvar, Name, Value)Name-Value
pair arguments mentioned above.
Note: calling fitdist
without any input arguments will return a cell
array of character vectors listing all supported distributions.
See also: makedist
Source Code: fitdist