import numpy as np

import a signal...

chop the signal into n-points window...

and divide this into N frames

calculate the mean of each of these frames and make a vector out of it...


def PAA(signal, n_points, N_dimensions):
    
    