/usr/share/octave/packages/nan-2.5.9/flag_implicit_significance.m is in octave-nan 2.5.9-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | function alpha=flag_implicit_significance(i)
% The use of FLAG_IMPLICIT_SIGNIFICANCE is in experimental state.
% flag_implicit_significance might even become obsolete.
%
% FLAG_IMPLICIT_SIGNIFICANCE sets and gets default alpha (level) of any significance test
% The default alpha-level is stored in the global variable FLAG_implicit_significance
% The idea is that the significance must not be assigned explicitely.
% This might yield more readable code.
%
% Choose alpha low enough, because in alpha*100% of the cases, you will
% reject the Null hypothesis just by change. For this reason, the default
% alpha is 0.01.
%
% flag_implicit_significance(0.01)
% sets the alpha-level for the significance test
%
% alpha = flag_implicit_significance()
% gets default alpha
%
% flag_implicit_significance(alpha)
% sets default alpha-level
%
% alpha = flag_implicit_significance(alpha)
% gets and sets alpha
%
% features:
% - compatible to Matlab and Octave
%
% see also: CORRCOEF, PARTCORRCOEF
% $Id: flag_implicit_significance.m 8223 2011-04-20 09:16:06Z schloegl $
% Copyright (C) 2000-2002,2009,2010 by Alois Schloegl <alois.schloegl@gmail.com>
% This function is part of the NaN-toolbox
% http://pub.ist.ac.at/~schloegl/matlab/NaN/
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 3 of the License, or
% (at your option) any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with this program; If not, see <http://www.gnu.org/licenses/>.
persistent FLAG_implicit_significance;
DEFAULT_ALPHA = 0.01;
%%% check whether FLAG was already defined
if ~exist('FLAG_implicit_significance','var'),
FLAG_implicit_significance = DEFAULT_ALPHA; % default value
end;
if isempty(FLAG_implicit_significance),
FLAG_implicit_significance = DEFAULT_ALPHA; % default value
end;
if nargin>0,
fprintf(2,'Warning: flag_implicit_significance is in an experimental state\n');
fprintf(2,'It might become obsolete.\n');
FLAG_implicit_significance = i;
end;
alpha = FLAG_implicit_significance;
|