Method ao/dsmean


  DSMEAN performs a simple downsampling by taking the mean of every N samples.
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
  DESCRIPTION: DSMEAN performs a simple downsampling by taking the mean of
               every N samples. The downsample factor (N) is taken as
               round(fs/fsout). The original vector is then truncated to a
               integer number of segments of length N. It is then reshaped
               to N x length(y)/N. Then the mean is taken.
 
  CALL:        b = dsmean(a, pl)
 
  Parameters Description
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Method Details
Access public
Defining Class ao
Sealed 0
Static 0

Parameter Description

Default

no description
Key Default Value Options Description
dsmean
FSOUT 10 none The output sample rate.
OFFSET 0 none Start averaging at a different index.

Example

plist('FSOUT', [10], 'OFFSET', [0])

back to top back to top

Some information of the method ao/dsmean are listed below:
Class name ao
Method name dsmean
Category Signal Processing
Package name ltpda
Can be used as modifier 1
Supported numeric types {'double'}




©LTP Team