Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

hasanisaeed/recurrence-plot-py

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Recurrence Plot

Recurrence Plot – A recurrence plot (RP) is an advanced technique of nonlinear data analysis. It is a visualisation (or a graph) of a square matrix, in which the matrix elements correspond to those times at which a state of a dynamical system recurs (columns and rows correspond then to a certain pair of times).

Result

Usage

1. Install requirements:

Ensure you have Python 3 installed. Install the required dependencies using:

pip install -r requirements.txt

2. Run example.py script:

python3 example.py # or python example.py

This will:

  • Generate a random signal.
  • Smooth the signal using a moving average filter.
  • Compute and visualize the recurrence plot.
  • Save the resulting plot as results/1D_to_2D.jpg.

How to Use the recurrence Package

If you want to use the recurrence package in your own projects:

  1. Import the Required Modules:

    For recurrence plot functions, import from recurrence.plotting. For signal processing utilities, import from recurrence.convolve.

    Example:

    from recurrence.plotting import setup_plot, save_plot
    from recurrence.convolve import calculate_convolve
  2. Process Your Signal:

    Use calculate_convolve to smooth your input signal, then use the setup_plot and save_plot functions to generate and save recurrence plots.

Packages

No packages published

Contributors 2

  •  
  •  

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.