Getting started

spkit is a python library, aimed to ease the use of signal processing algorithms and techniques. It also includes a few machine learning models with enhanced visulisations.

Table of Contents

Installation

Installing spkit is simple ans easy

with pip

pip install spkit

with conda - conda-forge is in process

conda install -c nikeshbajaj spkit

Or build from source

Download the repository or clone it with git, after cd in directory build it from source with

python setup.py install

Basic Filtering

Removing baseline/drift/wander - DC component

import spkit as sp
Xf = sp.filterDC(X,..)
Xf = sp.filterDC_sGolay(X,..)
Xf = sp.filter_X(X,band =[0.5],btype='highpass',order=5,fs=128.0,ftype='filtfilt')
Check here for details

Filtering

import spkit as sp

#highpass
Xf = sp.filter_X(X,band =[0.5],btype='highpass',order=5,fs=128.0,ftype='filtfilt')

#bandpass
Xf = sp.filter_X(X,band =[1, 4],btype='bandpass',order=5,fs=128.0,ftype='filtfilt')

#lowpass
Xf = sp.filter_X(X,band =[40],btype='lowpass',order=5,fs=128.0,ftype='filtfilt')
Check here for details

Information Theory

Wavelet Analysis

Transform Techniques

Biomedical Signals