Learn R Programming

wavethresh (version 4.6.1)

Best1DCols: Extract the best (one-dimensional) nondecimated WP packets

Description

This function takes the whole set of nondecimated wavelet packets and selects those packets that correlate best with the "response" groups. The idea is to reduce the large dimensionality (number of packets) into something more manageable which can then be fed into a proper discriminator.

Usage

Best1DCols(w2d, mincor=    0.69999999999999996)

Arguments

w2d
An object that gets returned from a call to the wpst2discr function which turns a wpst class object into a regular multivariate matrix
mincor
The threshold above which variables (packets) get included into the final mix if their correlation with the groups variable is higher than this value.

Value

  • A list with the following components:
  • nlevelsWTThe number of levels of the nondecimated wavelet packet encapsulator, w2d
  • BasisMatrixThe highest correlating packets, sorted according to decreasing correlation
  • levelThe levels corresponding to the selected packets
  • pktThe packet indices corresponding to the selected packets
  • basiscoefThe sorted correlations
  • groupsThe groups time series

Details

This function is not intended for direct user use. In this function, the w2d object contains a matrix where each column contains the coefficients of a single packet from a non-decimated wavelet packet transform. The number of rows of the matrix is the same as the original time series and hence each column can be correlated with a separate groups variable that contains the group membership of a separate variable which changes over time. Those packet columns that have correlation greater than the mincor value are extracted and returned in the BasisMatrix item of the returned list.

See Also

makewpstDO,wpst2discr