


Apply the exponential function to a Dynare time series object.


0001 function ts = exp(ts) 0002 % Apply the exponential function to a Dynare time series object. 0003 0004 %@info: 0005 %! @deftypefn {Function File} {@var{ts} =} log(@var{ts}) 0006 %! @anchor{exp} 0007 %! Apply the exponential function to a Dynare time series object. 0008 %! 0009 %! @strong{Inputs} 0010 %! @table @var 0011 %! @item ts 0012 %! Dynare time series object, instantiated by @ref{dynSeries} 0013 %! @end table 0014 %! 0015 %! @strong{Outputs} 0016 %! @table @var 0017 %! @item ts 0018 %! Dynare time series object with transformed data field. 0019 %! @end table 0020 %! 0021 %! @strong{This function is called by:} 0022 %! None. 0023 %! 0024 %! @strong{This function calls:} 0025 %! None. 0026 %! 0027 %! @end deftypefn 0028 %@eod: 0029 0030 % Copyright (C) 2011 Dynare Team 0031 % 0032 % This file is part of Dynare. 0033 % 0034 % Dynare is free software: you can redistribute it and/or modify 0035 % it under the terms of the GNU General Public License as published by 0036 % the Free Software Foundation, either version 3 of the License, or 0037 % (at your option) any later version. 0038 % 0039 % Dynare is distributed in the hope that it will be useful, 0040 % but WITHOUT ANY WARRANTY; without even the implied warranty of 0041 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0042 % GNU General Public License for more details. 0043 % 0044 % You should have received a copy of the GNU General Public License 0045 % along with Dynare. If not, see <http://www.gnu.org/licenses/>. 0046 0047 % AUTHOR(S) stephane DOT adjemian AT univ DASH lemans DOT fr 0048 0049 if ~isa(ts,'dynSeries') 0050 error('dynSeries::exp: Input argument has to be a Dynare time series object!') 0051 end 0052 0053 ts.data = exp(ts.data);