Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/p/y/pyhht-HEAD/boundary_conditions.py   pyhht(Download)
import numpy as np
import matplotlib.pyplot as plt
from flandrin_emd import extr
 
def boundary_conditions(x, t=None, z=None, NBSYM=2):
        z = x
 
    indmin, indmax = extr(x)[:2]
 
    lmin = indmin[:NBSYM]
if __name__ == "__main__":
    x = np.random.randn(100)
    indmin, indmax = extr(x)[:2]
    plt.plot(x)
    tmin, tmax, zmin, zmax = boundary_conditions(x)