Code Samples

Matlab

Simple Demo of multi-channel AFD

This demo shows the most simple way to use the multi-channel AFD.

Demo of Multi-channel AFD/Simple_Demo.m

Demo 1 of the multi-channel core AFD

This demo shows how to use the multi-channel core AFD and plot some useful figures.

Decomposition method used in this demo:

  • AFD method: Multi-channel core AFD

  • Method of generating searching dictionary: square

  • Fast AFD: No

Demo of Multi-channel AFD/Demo_coreAFD_1.m

Demo 2 of the multi-channel core AFD

This demo shows how to change the method of generating searching dictionary.

Decomposition method used in this demo:

  • AFD method: Multi-channel core AFD

  • Method of generating searching dictionary: circle

  • Fast AFD: No

Demo of Multi-channel AFD/Demo_coreAFD_2.m

Demo 3 of the multi-channel core AFD

This demo shows how to use the fast AFD to improve the computational efficiency.

Decomposition method used in this demo:

  • AFD method: Multi-channel core AFD

  • Method of generating searching dictionary: circle

  • Fast AFD: Yes

Demo of Multi-channel AFD/Demo_coreAFD_3.m

Comparison of different implementations of multi-channel core AFD

Compare methods in Demos 1, 2 and 3 of the multi-channel core AFD.

Demo of Multi-channel AFD/Demo_coreAFD_compare.m

Demo 1 of the multi-channel unwinding AFD

This demo shows how to use the multi-channel core AFD and plot some useful figures.

Decomposition method used in this demo:

  • AFD method: Multi-channel unwinding AFD

  • Method of generating searching dictionary: square

  • Fast AFD: No

Demo of Multi-channel AFD/Demo_unwindingAFD_1.m

Demo 2 of the multi-channel unwinding AFD

This demo shows how to change the method of generating searching dictionary.

Decomposition method used in this demo:

  • AFD method: Multi-channel unwinding AFD

  • Method of generating searching dictionary: circle

  • Fast AFD: No

Demo of Multi-channel AFD/Demo_unwindingAFD_2.m

Demo 3 of the multi-channel unwinding AFD

This demo shows how to use the fast AFD to improve the computational efficiency.

Decomposition method used in this demo:

  • AFD method: Multi-channel unwinding AFD

  • Method of generating searching dictionary: circle

  • Fast AFD: Yes

Demo of Multi-channel AFD/Demo_unwindingAFD_3.m

Comparison of different implementations of multi-channel unwinding AFD

Compare methods in Demos 1, 2 and 3 of the multi-channel unwinding AFD.

Demo of Multi-channel AFD/Demo_unwindingAFD_compare.m

Different phases for different channels (multi-channel AFD)

This demo shows how to set different phases for different signals.

Demo of Multi-channel AFD/Demo_set_diffPhases.m

Decomposition using user-defined parameters without searching parameters (multi-channel AFD)

This demo shows how to use the pre-defined parameters to conduct the decomposition without searching parameters. It should be noticed that, when using user-defined parameters, the decomposition is not adaptive.

Demo of Multi-channel AFD/Demo_set_existing_an.m

Simple Demo of single channel AFD

This demo shows the most simple way to use this toolbox. The single channel core AFD without improving the computaitonal efficiency is used to decompose a ECG signal.

Demo of Single Channel AFD/Simple_Demo.m

Demo 1 of the single channel core AFD

This demo shows how to use the single channel core AFD and plot some useful figures.

Decomposition method used in this demo:

  • AFD method: Single channel core AFD

  • Method of generating searching dictionary: square

  • Fast AFD: No

Demo of Single Channel AFD/Demo_coreAFD_1.m

Demo 2 of the single channel core AFD

This demo shows how to change the method of generating searching dictionary.

Decomposition method used in this demo:

  • AFD method: Single channel core AFD

  • Method of generating searching dictionary: circle

  • Fast AFD: No

Demo of Single Channel AFD/Demo_coreAFD_2.m

Demo 3 of the single channel core AFD

This demo shows how to use the fast AFD to improve the computational efficiency.

Decomposition method used in this demo:

  • AFD method: Single channel core AFD

  • Method of generating searching dictionary: circle

  • Fast AFD: Yes

Demo of Single Channel AFD/Demo_coreAFD_3.m

Comparison of different implementations of single channel core AFD

Compare methods in Demos 1, 2 and 3 of the single channel core AFD.

Demo of Single Channel AFD/Demo_coreAFD_compare.m

Demo 1 of the single channel unwinding AFD

This demo shows how to use the single channel core AFD and plot some useful figures.

Decomposition method used in this demo:

  • AFD method: Single channel unwinding AFD

  • Method of generating searching dictionary: square

  • Fast AFD: No

Demo of Single Channel AFD/Demo_unwindingAFD_1.m

Demo 2 of the single channel unwinding AFD

This demo shows how to change the method of generating searching dictionary.

Decomposition method used in this demo:

  • AFD method: Single channel unwinding AFD

  • Method of generating searching dictionary: circle

  • Fast AFD: No

Demo of Single Channel AFD/Demo_unwindingAFD_2.m

Demo 3 of the single channel unwinding AFD

This demo shows how to use the fast AFD to improve the computational efficiency.

Decomposition method used in this demo:

  • AFD method: Single channel unwinding AFD

  • Method of generating searching dictionary: circle

  • Fast AFD: Yes

Demo of Single Channel AFD/Demo_unwindingAFD_3.m

Comparison of different implementations of single channel unwinding AFD

Compare methods in Demos 1, 2 and 3 of the single channel unwinding AFD.

Demo of Single Channel AFD/Demo/Demo_unwindingAFD_compare.m

Different phases for different channels (single channel AFD)

This demo shows how to set different phases for different signals.

Demo of Single Channel AFD/Demo_set_diffPhases.m

User-defined searching dictionary (single channel AFD)

This demo shows how to define the searching dictionary.

Demo of Single Channel AFD/Demo_set_searchingDictionary.m

Decomposition using user-defined parameters without searching parameters (single channel AFD)

This demo shows how to use the pre-defined parameters to conduct the decomposition without searching parameters. It should be noticed that, when using user-defined parameters, the decomposition is not adaptive.

Demo of Single Channel AFD/Demo_set_existing_an.m

Python

Demo 1: Multi-channel core AFD based on the conventional basis searching with the square searching dictionary

Decomposition method used in this demo:

  • AFD method: Multi-channel core AFD

  • Method of generating searching dictionary: square

  • Fast AFD: No

Demos/example_multichannel_conv_AFD_square.py

Demo 2: Multi-channel core AFD based on the conventional basis searching with the circle searching dictionary

Decomposition method used in this demo:

  • AFD method: Multi-channel core AFD

  • Method of generating searching dictionary: circle

  • Fast AFD: No

Demos/example_multichannel_conv_AFD_circle.py

Demo 3: Multi-channel core AFD based on the fast basis searching

Decomposition method used in this demo:

  • AFD method: Multi-channel core AFD

  • Method of generating searching dictionary: circle

  • Fast AFD: Yes

Demos/example_multichannel_fast_AFD.py

Demo 4: Decomposition using user-defined \(a_n\) array without searching new \(a_n\) array

This demo shows how to use the user-defined \(a_n\) array to conduct the decomposition without searching new \(a_n\) array. It should be noticed that, when using the user_defined \(a_n\) array, the decomposition is not adaptive.

Demos/example_predefined_an.py

Demo 1: Single channel AFD based on conventional basis searching with the square searching dictionary

Decomposition method used in this demo:

  • AFD method: Single Channel core AFD

  • Method of generating searching dictionary: square

  • Fast AFD: No

Demos/example_conv_AFD_square.py

Demo 2: Single channel AFD based on conventional basis searching with the circle searching dictionary

Decomposition method used in this demo:

  • AFD method: Single Channel core AFD

  • Method of generating searching dictionary: circle

  • Fast AFD: No

Demos/example_conv_AFD_circle.py

Demo 3: Single channel AFD based on fast basis searching

Decomposition method used in this demo:

  • AFD method: Single Channel core AFD

  • Method of generating searching dictionary: circle

  • Fast AFD: Yes

Demos/example_fast_AFD.py

Demo 4: POAFD with the square searching dictionary

Decomposition method used in this demo:

  • AFD method: Single Channel POAFD

  • Method of generating searching dictionary: square

  • Fast AFD: No

Demos/example_POAFD_square.py

Demo 5: POAFD with the circle searching dictionary

Decomposition method used in this demo:

  • AFD method: Single Channel POAFD

  • Method of generating searching dictionary: circle

  • Fast AFD: No

Demos/example_POAFD_circle.py