| Contents | Index |
Construct ProbDistUnivKernel object
PD = ProbDistUnivKernel(X)
PD = ProbDistUnivKernel(X, param1, val1, param2, val2,
...)
Tip Although you can use this constructor function to create a ProbDistUnivKernel object, using the fitdist function is an easier way to create the ProbDistUnivKernel object. |
PD = ProbDistUnivKernel(X) creates PD, a ProbDistUnivKernel object, which represents a nonparametric probability distribution, based on a normal kernel smoothing function.
PD = ProbDistUnivKernel(X, param1, val1, param2, val2, ...) specifies optional parameter name/value pairs, as described in the Parameter/Values table. Parameter and value names are case insensitive.
| X | A column vector of data. |
| Parameter | Values |
|---|---|
| 'censoring' | A Boolean vector the same size as X, containing 1s when the corresponding elements in X are right-censored observations and 0s when the corresponding elements are exact observations. Default is a vector of 0s. |
| 'frequency' | A vector the same size as X, containing nonnegative integers specifying the frequencies for the corresponding elements in X. Default is a vector of 1s. |
| 'kernel' | A string specifying the type of kernel smoother to use. Choices are:
|
| 'support' | Any of the following to specify the support:
|
| 'width' | A value specifying the bandwidth of the kernel smoothing window. The default is optimal for estimating normal densities, but you may want to choose a smaller value to reveal features such as multiple modes. |
| PD | An object in the ProbDistUnivKernel class, which is derived from the ProbDist class. It represents a nonparametric probability distribution. |
[1] Bowman, A. W., and A. Azzalini. Applied Smoothing Techniques for Data Analysis. New York: Oxford University Press, 1997.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |