1## Copyright (C) 2015 Parsiad Azimzadeh <parsiad.azimzadeh@gmail.com>
2##
3## This program is free software; you can redistribute it and/or modify
4## it under the terms of the GNU General Public License as published by
5## the Free Software Foundation; either version 3 of the License, or
6## (at your option) any later version.
7##
8## This program is distributed in the hope that it will be useful,
9## but WITHOUT ANY WARRANTY; without even the implied warranty of
10## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11## GNU General Public License for more details.
12##
13## You should have received a copy of the GNU General Public License
14## along with this program; if not, see <http://www.gnu.org/licenses/>.
15
16function display (DriftRate)
17
18  if (DriftRate.IsAConstant)
19    AString = mat2str (DriftRate.A (0., 0.));
20  else
21    AString = func2str (DriftRate.A);
22  endif
23
24  if (DriftRate.IsBConstant)
25    BString = mat2str (DriftRate.B (0., 0.));
26  else
27    BString = func2str (DriftRate.B);
28  endif
29
30  printf ("\n\
31  Class DRIFT: Drift Rate Specification\n\
32  -------------------------------------\n\
33     Rate: %s\n\
34        A: %s\n\
35        B: %s\n\n",
36          func2str (DriftRate.Rate), AString, BString);
37
38endfunction
39