def main(): # vss = calc_synchronization( # model=cochlea.run_holmberg2007, # cfs=cochlea.holmberg2007.real_freq_map[10::5], # model_pars={'fs': 48e3} # ) vss = calc_synchronization( model=cochlea.run_zilany2014, model_pars={'species': 'human'} ) print(vss) vss = vss.reset_index() hsr_vss = vss.pivot(index='dbspl', columns='cf', values='hsr') fig,ax = plt.subplots(2,1) ax[0].imshow(hsr_vss, aspect='auto', interpolation='nearest') hsr_vss.max().plot(ax=ax[1], logx=True) plt.show()
def main(): # vss = calc_synchronization( # model=cochlea.run_holmberg2007, # cfs=cochlea.holmberg2007.real_freq_map[10::5], # model_pars={'fs': 48e3} # ) vss = calc_synchronization( model=cochlea.run_zilany2014, model_pars={'species': 'human'} ) print(vss) vss.plot(logx=True) plt.show()