Plotkd: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Jeremy
(Importing text file)
imported>Jeremy
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
===Purpose===
===Purpose===
Kernel density plot.
Kernel density plot.
===Synopsis===
===Synopsis===
:plotkd(x,distname,kernel,userw,translate)
:plotkd(x,distname,kernel,userw,translate)
===Description===
===Description===
Provides a kernel density plot of the input x and an overlay.
Provides a kernel density plot of the input x and an overlay.
====INPUTS====
 
====Inputs====
 
* '''x''' = matrix (column vector) in which the sample data is stored.
* '''x''' = matrix (column vector) in which the sample data is stored.
* '''distname''' = string, optional distribution name to assume as the parent distribution for the sample. Default value is 'normal'.  
* '''distname''' = string, optional distribution name to assume as the parent distribution for the sample. Default value is 'normal'.  
* '''kernel''' = Integer between 1 and 7 indicating which kernel to use.
* '''kernel''' = Integer between 1 and 7 indicating which kernel to use.
*   '''1''' - Bivwight
::   '''1''' - Bivwight
*   '''2''' - Cosine
::   '''2''' - Cosine
*   '''3''' - Epanechnikov {default}
::   '''3''' - Epanechnikov {default}
*   '''4''' - Gaussian
::   '''4''' - Gaussian
*   '''5''' - Parzen
::   '''5''' - Parzen
*   '''6''' - Triangle
::   '''6''' - Triangle
* '''userw''' = scalar, the optional window width to use in the kernel calculation. If not specified, then the optimal window width is used according to the calculation:
 
*  '''
* '''userw''' = scalar, the optional window width to use in the kernel calculation. If not specified, then the optimal window width is used according to the calculation: <tt>translate = scalar, axis translation.</tt>
**''''''''''''''' translate = scalar, axis translation.
 
===Examples===
===Examples===
plotkd(x)
 
plotkd(x,'normal')
plotkd(x)
 
plotkd(x,'normal')
 
===See Also===
===See Also===
[[plotcqq]], [[plotedf]], [[plotqq]], [[plotsym]]
[[plotcqq]], [[plotedf]], [[plotqq]], [[plotsym]]

Latest revision as of 12:31, 9 October 2008

Purpose

Kernel density plot.

Synopsis

plotkd(x,distname,kernel,userw,translate)

Description

Provides a kernel density plot of the input x and an overlay.

Inputs

  • x = matrix (column vector) in which the sample data is stored.
  • distname = string, optional distribution name to assume as the parent distribution for the sample. Default value is 'normal'.
  • kernel = Integer between 1 and 7 indicating which kernel to use.
1 - Bivwight
2 - Cosine
3 - Epanechnikov {default}
4 - Gaussian
5 - Parzen
6 - Triangle
  • userw = scalar, the optional window width to use in the kernel calculation. If not specified, then the optimal window width is used according to the calculation: translate = scalar, axis translation.

Examples

plotkd(x)
plotkd(x,'normal')

See Also

plotcqq, plotedf, plotqq, plotsym