function [h,p,ci,stats,stdp_ratio]=simpleteetester(preinduc,postinduc,ttest_firstorall,writettestresulttodatabase_yesno,postinductionfilename,suffix)
%description: pretty simple
%called by: analyze_across_expts
%calls: write_to_sql_database
%notes: could also consider t-test of Pr_o-c before/after or ANOVA(PSCo-c, and a-c or Pr_o-c, and a-c before and after
%code confirmed date:

if ttest_firstorall
    values_antes=preinduc(1,:);values_despues=postinduc(1,:);
elseif ttest_firstorall==2
    values_antes=sum(preinduc);values_despues=sum(postinduc);
end
    
[h,p,ci,stats]=ttest2(values_antes,values_despues);

stdp_ratio=mean(values_despues)/mean(values_antes);

if writettestresulttodatabase_yesno
    write_to_sql_database('patchlog_epochs_table','LTP_from_prev_characterization_epoch',stdp_ratio,strcat('WHERE patchlogfiles_this_epoch = ''', postinductionfilename,''' AND suffix =''', suffix,''''));
    write_to_sql_database('patchlog_epochs_table','LTP_from_prev_characterization_epoch_pvalue',p,strcat('WHERE patchlogfiles_this_epoch = ''', postinductionfilename,''' AND suffix =''', suffix,''''));
end
end