sim_psc_data=simulated_psc_in_noise(number_reps,recorded_noise,use_noise,splisiterequirements,find_unique_segments,breakpoints_mustbe_consecutive,max_segments,minimal_noise_length,...
    template_type,template_seeds,taper_template,trunc_templ_detec,scaler,two_waveforms,second_waveform_subset,variable_waveform_size,minimum_absolute_peak_amplitude,...
    amp_window,detec_alg,plot_detection,omniscient_start,precede_for_return)

 sim_psc_data=simulated_psc_in_noise_unrecombinedoption(number_reps,recorded_noise,use_noise,recombine_noise,splisiterequirements,find_unique_segments,breakpoints_mustbe_consecutive,max_segments,minimal_noise_length,...
    template_type,template_seeds,taper_template,detection_template,trunc_templ_detec,scaler,two_waveforms,second_waveform_subset,variable_waveform_size,minimum_absolute_peak_amplitude,...
    amp_window,detec_alg,plot_detection,omniscient_start,precede_for_return)

 sim_psc_data=simulated_psc_in_noise_unrecombinedoption(10,noise20070319T125639trial16to10k,1,1,[3 3 3 3],1,0,22,1000,1,[23.984085025960670   3.861189308388354  27.526665160068116],[5 0],0,6:105,25,[0 100 5],0,[1 0],[0 0],[-3:10],[1 15 10 40 -10 -5 -1],0,[0 0],10);

%spd=simulated_psc_in_noise(1,noise20070319T125639trial16to10k,1,[3 3 3 3],1,0,22,1000,1,[23.984085025960670   3.861189308388354  27.526665160068116],[0 0],[0],12,[1 100 .5],[0],[0 0],[0 0],[-3:10],[1 15 10 40 -10 -5 -1],0,[0 0],10);