This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Multifractal 1-D wavelet leader estimates


[dh,h] = dwtleader(x)
[dh,h,cp] = dwtleader(x)
[dh,h,cp,tauq] = dwtleader(x)
[dh,h,cp,tauq,leaders] = dwtleader(___)
[dh,h,cp,tauq,leaders,structfunc] = dwtleader(___)
[___]= dwtleader(x,wname)
[___] = dwtleader(___,Name,Value)



[dh,h] = dwtleader(x) returns the singularity spectrum, dh, and the Holder exponents, h, for the 1-D real-valued data, x. The singularity spectrum and Holder exponents are estimated for the linearly-spaced moments of the structure functions from –5 to +5.


[dh,h,cp] = dwtleader(x) also returns the first three log cumulants, cp of the scaling exponents.


[dh,h,cp,tauq] = dwtleader(x) also returns the scaling exponents for the linearly spaced moments from –5 to 5. Wavelet leaders are not defined for the finest scale.

[dh,h,cp,tauq,leaders] = dwtleader(___) also returns the wavelet leaders by scale.

[dh,h,cp,tauq,leaders,structfunc] = dwtleader(___) also returns the multiresolution structure functions.

[___]= dwtleader(x,wname) uses the orthogonal or biorthogonal wavelet specified by wname to compute the wavelet leaders and the fractal estimates.

[___] = dwtleader(___,Name,Value) returns the wavelet leaders and other specified outputs with additional options specified by one or more Name,Value pair arguments.


collapse all

Compare the multifractal spectrum of heart-rate variability data before and after application of a drug that reduces heart dynamics.

load hrvDrug;
predrug = hrvDrug(1:4642);
postdrug = hrvDrug(4643:end);
[dhpre,hpre] = dwtleader(predrug);
[dhpost,hpost] = dwtleader(postdrug);
grid on

The spread of the Holder exponent values before drug administration (approximately 0.08 to 0.55) is much larger than the spread of the values afterward (approximately 0.08 to 0.31). This indicates that the heart rate has become more monofractal.

Compute the singularity spectrum and cumulants for a Brownian noise process.

Create the Brownian noise signal.

x = cumsum(randn(2^15,1));

Obtain and plot the singularity spectrum.

[dh,h,cp] = dwtleader(x);
grid on
title({'Singularity Spectrum'; ['First Cumulant ' num2str(cp(1))]})

The small spread in the Holder exponents (approximately 0.472 to 0.512) indicates that this Brownian noise signal can be characterized by a global Holder exponent of 0.49875. The theoretical Holder exponent for Brownian motion is 0.5.

Obtain the cumulants.

cp = 

    0.4987   -0.0052   -0.0008

The first cumulant value is the slope of scaling exponents versus the moments. The second and third cumulants indicate the deviation from linearity. The first cumulant value and near-zero values of the second and third cumulants indicate that the scaling exponents are a linear function of the moments. Therefore, this Brownian motion signal is monofractal.

Compute the cumulants for a multifractal random walk. The multifractal random walk is a realization of a random process with a theoretical first cumulant of 0.75 and a second cumulant –0.05. The second cumulant value of –0.05 indicates that the scaling exponents deviate from a linear function with slope 0.75.

Load a random walk signal.

load mrw07505 

Obtain and display the first and second cumulants.

[~,~,cp,tauq] = dwtleader(mrw07505);
cp([1 2])
ans = 

    0.7475   -0.0473

For monofractal processes, the scaling exponents are a linear function of the moments. Linearity is indicated by the second and third cumulants being close to zero. In this case, the nonzero second cumulant indicates that the process is multifractal.

Plot the scaling exponents for the q th moments.

title('Estimated Scaling Exponents')
grid on
xlabel('qth Moments')

The scaling exponents are a nonlinear function of the moments.

Input Arguments

collapse all

Input signal, specified as a 1-D vector of real values. For the default wavelet and minimum regression level, the time series must have at least 248 samples. For nondefault values, the minimum-required data length depends on the wavelet filter and the levels used in the regression model. The wavelet leaders technique works best for data with 8000 or more samples.

Wavelet name, specified as a character vector. wname is a wavelet family short name and filter number recognized by the wavelet manager, wavemngr.

To query valid wavelet family short names, use wavemngr('read'). To determine whether a particular wavelet is orthogonal or biorthogonal, use waveinfo with the wavelet family short name, for example, waveinfo('db'). Alternatively, use wavemngr with the 'type' option, for example, wavemngr('type','fk4'). A returned value of 1 indicates an orthogonal wavelet. A returned value of 2 indicates a biorthogonal wavelet.

Name-Value Pair Arguments

Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside single quotes (' '). You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.

Example: 'MinRegressionLevel',5 sets the minimum regression level to 5.

collapse all

Minimum regression level, minlev, specified as the comma-separated pair consisting of 'MinRegressionLevel' and a positive integer greater than or equal to 2. Only levels greater than or equal to the specified minimum level are used in the multifractal estimates. dwtleader requires at least 6 wavelet leaders at the maximum level and two levels to be used in the multifractal estimates. The scale in the discrete wavelet transform corresponding to the minimum level is twominlev. The smoother the data (that is, the closer the Holder exponents are to 1), the less likely that reducing the minimum regression level will degrade the results.

Maximum regression level, maxlev, specified as a positive integer greater than or equal to minlev + 1. The maximum level uses only levels less than or equal to maxlev in the multifractal estimates. The scale in the discrete wavelet transform corresponding to the maximum level is 2maxlev. Specify a maximum regression level when you want to restrict the levels used in the regression to a value less than the default level. To determine the number of wavelet leaders by level, use the leaders output argument, or the weights field of the structfunc output argument. The default value is the largest level with at least six wavelet leaders

Output Arguments

collapse all

Singularity spectrum, returned as a vector. The singularity spectrum is estimated using structure functions determined for the linearly-spaced moments from –5 to 5. The structure functions are computed based on the wavelet leaders obtained using the biorthogonal spline wavelet filter. The biorthogonal spline wavelet filter that is used has one vanishing moment in the synthesis wavelet and five vanishing moments in the analysis wavelet ('bior1.5'). By default, multifractal estimates are derived from wavelet leaders at a minimum level of 3 and maximum level where there are at least six wavelet leaders.

Holder exponent estimates, returned as a 1-by-11 vector of scalars. Holder exponents characterize signal regularity. The closer a Holder exponent is to 1, the closer the function is to differentiable. Conversely, the closer the Holder exponent is to zero, the closer the function is to discontinuous.

Data Types: double

Cumulants, returned as a 1–by-3 vector of scalars. The vector contains the first three log cumulants of the scaling exponents. The first cumulant characterizes the linear behavior in the scaling exponents. The second and third cumulants characterize the departure from linearity.

Data Types: double

Scaling exponents, returned as a column vector. The exponents are for the linearly-spaced moments from –5 to +5.

leaders is a cell array with the ith element containing the wavelet leaders at level i+1, or scale 2(i +1). Wavelet leaders are not defined at level 1.

Multiresolution structure functions for the global Holder exponent estimates, returned as a struct. The structure function for data x is defined as


where a is the scale, q is the moment, Tx are the wavelet leaders by scale, na is the number of wavelet leaders at each scale, and ζ(q) is the scaling exponent. Expanding ζ(q) to a polynomial produces


The scaling exponents can be estimated from the log-cumulants of the wavelet leader coefficients. When ζ(q) is a linear function, the signal is monofractal. When it deviates from linear, the signal is multifractal.

structfunc is a structure array containing the following fields:

  • Tq — Measurements of the input, x, at various scales. Tq is a matrix of multiresolution quantities that depend jointly on time and scale. Scaling phenomena in x imply a power-law relationship between the moments of Tq and the scale. For dwtleader, the Tq field is an Ns-by-36 matrix, where Ns is the number of scales used in the multifractal estimates. The first 11 columns of Tq are the scaling exponent estimates by scale for each of the qth moments from –5 to 5. The next 11 columns contain the singularity spectrum estimates, dh, for each of the qth moments. Columns 23–33 contain the Holder exponent estimates, h. The last three columns contain the estimates for the first-order, second-order, and third-order cumulants, respectively.

  • weights — Weights used in the regression. The weights are the number of wavelet leaders by scale. weights is an Ns-by-1 vector.

  • logscales — Scales used as predictors in the regression. logscales is an Ns-by-1 vector with the base-2 logarithm of the scales.


Wavelet leaders are derived from the critically sampled discrete wavelet transform (DWT) coefficients. Wavelet leaders offer significant theoretical advantages over wavelet coefficients in the multifractal formalism. Wavelet leaders are time- or space-localized suprema of the absolute value of the discrete wavelet coefficients. The time localization of the suprema requires that the wavelet coefficients are obtained using a compactly supported wavelet. The Holder exponents, which quantify the local regularity, are determined from these suprema. The singularity spectrum indicates the size of the set of Holder exponents in the data.

1-D wavelet leaders are defined as


where the scales are 2j, translated to time positions 2jk. The time neighborhood is 3λj,k=λj,k1λj,kλj,k+1, where λj,k=[k2j,(k+1)2j). The time neighborhood is taken over the scale and all finer scales. dx(j,k) are the wavelet coefficients.

To calculate the wavelet leaders, Lx(j,k):

  1. Compute the wavelet coefficients, dx(j,k), using the discrete wavelet transform and save the absolute value of each coefficient for each scale. Each finer scale has twice the number of coefficients than the next coarser scale. Each dyadic interval at scale 2j can be written as a union of two intervals at a finer scale.


  2. Start at the scale that is one level coarser than the finest obtained scale.

  3. Compare the first value to all its finer dyadic intervals and obtain the maximum value.

  4. Go to the next value and compare its value to all of its finer scale values.

  5. Continue comparing the values with their nested values and obtaining the maxima.

  6. From the maximum values obtained for that scale, examine the first three values and obtain the maximum of those neighbors. That maximum value is a leader for that scale.

  7. Continue comparing the maximum values to obtain the other leaders for that scale.

  8. Move to the next coarser scale and repeat the process.

For example, assume that you have these absolute values of the coefficients at these scales:

Starting with the top row, which is the next coarsest level from the finest scale (bottom row), compare each value to its dyadic intervals and obtain the maxima.

Then, look at the three neighboring values and obtain the maximum. Repeat for the next three neighbors. These maxima, 7 and 7, are the wavelet leaders for this level.


[1] Wendt, H., and P. Abry. "Multifractality Tests Using Bootstrapped Wavelet Leaders." IEEE Transactions on Signal Processing. Vol. 55, No. 10, 2007, pp. 4811–4820.

[2] Jaffard, S., B. Lashermes, and P. Abry. “Wavelet Leaders in Multifractal Analysis.” Wavelet Analysis and Applications. T. Qian, M. I. Vai, and X. Yuesheng, Eds. 2006, pp. 219–264.

Introduced in R2016b

Was this topic helpful?