Wavelet Toolbox™ Previous page   Next Page 
mdwtcluster
 Provide feedback about this page

Multisignals 1-D clustering

Syntax

Description

S = mdwtcluster(X) constructs clusters from a hierarchical cluster tree. The input matrix X is decomposed in row direction using the DWT function with the haar wavelet and the maximum allowed level.

S = mdwtcluster(X,'PropName1',PropVal1,'PropName2',PropVal2,...) allows you to modify some properties. The valid choices for PropName are:

'dirDec'
'r' (row) or 'c' (column). Default value is 'r'.
'level'
Level of the DWT decomposition. Default value is:

level=fix(log2(size(X,d)))


where d=1 or d=2, depending on the dirDec value.
'wname'
Wavelet name used for DWT. Default value is 'haar'.
'dwtEXTM'
DWT extension mode (see dwtmode).
'pdist'
See Statistics Toolbox™ pdist function. Default value is 'euclidean'.
'linkage'
See Statistics Toolbox™ linkage function. Default value is 'ward'.
'maxclust'
Number of clusters. Default value is 6. The input variable can be a vector.
'lst2clu'
Cell array that contains the list of data to classify.
If N is the level of decomposition, the allowed name values for the cells are:
  • 's' -- Signal
  • 'aj' -- Approximation at level j
  • 'dj' -- Detail at level j
  • 'caj' -- Coefficients of approximation at level j
  • 'cdj' -- Coefficients of detail at level j

Default value is {'s';'ca1';...;'caN'}.

The output structure S is such that for each partition j:

S.Idx(:,j)

Contains the cluster numbers obtained from the hierarchical cluster tree (see cluster in the Statistics Toolbox™ software).

S.Incons(:,j)
Contains the inconsistent values of each non-leaf node in the hierarchical cluster tree (see Statistics Toolbox™ software function inconsistent).
S.Corr(j)
Contains the cophenetic correlation coefficients of the partition (see Statistics Toolbox™ software function cophenet).

Examples

See Also
mdwtdec, wavedec


 Provide feedback about this page 

Previous page lwtcoef2 mdwtdec Next page

 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS