function [st,t,f] =
st_gaijin(timeseries,factor_a,factor_b,factor_c,minfreq,maxfreq,samplingrate,freqsamplingrate)
% This is the S transform wrapper that holds default values for the function.
TRUE = 1;
FALSE = 0;
%%% DEFAULT PARAMETERS [change these for your particular application]
verbose = FALSE;%是否将运算的过程输出在控制台上
removeedge = FALSE;%是否加窗以去除采样信号的边缘
analytic_signal = TRUE;%判断时间序列是否为实数
factor = factor1;%高斯窗的宽度因素为 factor*period
%%% END of DEFAULT PARAMETERS
%%%START OF INPUT VARIABLE CHECK
% First: make sure it is a valid time_series
% If not, return the help message
if verbose
disp(' ');
end % I like a line left blank
if nargin == 0
if verbose
disp('No parameters inputted.');
end
st_help;
t=0;
st=-1;
f=0;
return
end
% Change to column vector
if size(timeseries,2) > size(timeseries,1)
timeseries=timeseries';
end
% Make sure it is a 1-dimensional array
if size(timeseries,2) > 1
error('Please enter a *vector* of data, not matrix');
% return;
elseif (size(timeseries)==[1 1]) == 1
error('Please enter a *vector* of data, not a scalar');