Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Rightclick on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
You can subscribe to this list here.
2001 
_{Jan}

_{Feb}

_{Mar}

_{Apr}

_{May}

_{Jun}

_{Jul}
(10) 
_{Aug}
(5) 
_{Sep}
(3) 
_{Oct}
(41) 
_{Nov}
(41) 
_{Dec}
(33) 

2002 
_{Jan}
(75) 
_{Feb}
(10) 
_{Mar}
(170) 
_{Apr}
(174) 
_{May}
(66) 
_{Jun}
(11) 
_{Jul}
(10) 
_{Aug}
(44) 
_{Sep}
(73) 
_{Oct}
(28) 
_{Nov}
(139) 
_{Dec}
(52) 
2003 
_{Jan}
(35) 
_{Feb}
(93) 
_{Mar}
(62) 
_{Apr}
(10) 
_{May}
(55) 
_{Jun}
(70) 
_{Jul}
(37) 
_{Aug}
(16) 
_{Sep}
(56) 
_{Oct}
(31) 
_{Nov}
(57) 
_{Dec}
(83) 
2004 
_{Jan}
(85) 
_{Feb}
(67) 
_{Mar}
(27) 
_{Apr}
(37) 
_{May}
(75) 
_{Jun}
(85) 
_{Jul}
(160) 
_{Aug}
(68) 
_{Sep}
(104) 
_{Oct}
(25) 
_{Nov}
(39) 
_{Dec}
(23) 
2005 
_{Jan}
(10) 
_{Feb}
(45) 
_{Mar}
(43) 
_{Apr}
(19) 
_{May}
(108) 
_{Jun}
(31) 
_{Jul}
(41) 
_{Aug}
(23) 
_{Sep}
(65) 
_{Oct}
(58) 
_{Nov}
(44) 
_{Dec}
(54) 
2006 
_{Jan}
(96) 
_{Feb}
(27) 
_{Mar}
(69) 
_{Apr}
(59) 
_{May}
(67) 
_{Jun}
(35) 
_{Jul}
(13) 
_{Aug}
(461) 
_{Sep}
(160) 
_{Oct}
(399) 
_{Nov}
(32) 
_{Dec}
(72) 
2007 
_{Jan}
(316) 
_{Feb}
(305) 
_{Mar}
(318) 
_{Apr}
(54) 
_{May}
(194) 
_{Jun}
(173) 
_{Jul}
(282) 
_{Aug}
(91) 
_{Sep}
(227) 
_{Oct}
(365) 
_{Nov}
(168) 
_{Dec}
(18) 
2008 
_{Jan}
(71) 
_{Feb}
(111) 
_{Mar}
(155) 
_{Apr}
(173) 
_{May}
(70) 
_{Jun}
(67) 
_{Jul}
(55) 
_{Aug}
(83) 
_{Sep}
(32) 
_{Oct}
(68) 
_{Nov}
(80) 
_{Dec}
(29) 
2009 
_{Jan}
(46) 
_{Feb}
(18) 
_{Mar}
(95) 
_{Apr}
(76) 
_{May}
(140) 
_{Jun}
(98) 
_{Jul}
(84) 
_{Aug}
(123) 
_{Sep}
(94) 
_{Oct}
(131) 
_{Nov}
(142) 
_{Dec}
(125) 
2010 
_{Jan}
(128) 
_{Feb}
(158) 
_{Mar}
(172) 
_{Apr}
(134) 
_{May}
(94) 
_{Jun}
(84) 
_{Jul}
(32) 
_{Aug}
(127) 
_{Sep}
(167) 
_{Oct}
(109) 
_{Nov}
(69) 
_{Dec}
(78) 
2011 
_{Jan}
(39) 
_{Feb}
(58) 
_{Mar}
(52) 
_{Apr}
(47) 
_{May}
(56) 
_{Jun}
(76) 
_{Jul}
(55) 
_{Aug}
(54) 
_{Sep}
(165) 
_{Oct}
(255) 
_{Nov}
(328) 
_{Dec}
(263) 
2012 
_{Jan}
(82) 
_{Feb}
(147) 
_{Mar}
(400) 
_{Apr}
(216) 
_{May}
(209) 
_{Jun}
(160) 
_{Jul}
(86) 
_{Aug}
(141) 
_{Sep}
(156) 
_{Oct}
(6) 
_{Nov}

_{Dec}

2015 
_{Jan}

_{Feb}

_{Mar}

_{Apr}

_{May}

_{Jun}

_{Jul}
(1) 
_{Aug}

_{Sep}
(1) 
_{Oct}

_{Nov}
(1) 
_{Dec}
(2) 
2016 
_{Jan}

_{Feb}
(2) 
_{Mar}
(2) 
_{Apr}
(1) 
_{May}
(1) 
_{Jun}
(2) 
_{Jul}
(1) 
_{Aug}
(1) 
_{Sep}

_{Oct}

_{Nov}
(1) 
_{Dec}

S  M  T  W  T  F  S 

1

2

3
(1) 
4
(2) 
5
(5) 
6
(1) 
7
(1) 
8

9
(1) 
10
(3) 
11
(5) 
12
(3) 
13
(2) 
14

15
(9) 
16

17

18
(1) 
19
(5) 
20
(1) 
21
(5) 
22
(3) 
23
(5) 
24
(3) 
25

26
(6) 
27
(2) 
28
(1) 
29

30
(2) 





From: <adb014@us...>  20080605 09:51:37

Revision: 5093 http://octave.svn.sourceforge.net/octave/?rev=5093&view=rev Author: adb014 Date: 20080605 02:51:38 0700 (Thu, 05 Jun 2008) Log Message:  Replace isstr with ischar everywhere Modified Paths:  trunk/octaveforge/extra/graceplot/inst/grace_octave_path.m trunk/octaveforge/extra/pdb/inst/plotpdb.m trunk/octaveforge/main/image/inst/imread.m trunk/octaveforge/nonfree/arpack/inst/svds.m Modified: trunk/octaveforge/extra/graceplot/inst/grace_octave_path.m ===================================================================  trunk/octaveforge/extra/graceplot/inst/grace_octave_path.m 20080605 09:50:57 UTC (rev 5092) +++ trunk/octaveforge/extra/graceplot/inst/grace_octave_path.m 20080605 09:51:38 UTC (rev 5093) @@ 28,7 +28,7 @@ if (nargin == 0) path = __pl_grace_octave_path;  elseif (nargin == 1 && isstr(path)) + elseif (nargin == 1 && ischar (path)) if (path(length (path)) != '/') path = [path "//"]; elseif (path(length (path)1) != '/') Modified: trunk/octaveforge/extra/pdb/inst/plotpdb.m ===================================================================  trunk/octaveforge/extra/pdb/inst/plotpdb.m 20080605 09:50:57 UTC (rev 5092) +++ trunk/octaveforge/extra/pdb/inst/plotpdb.m 20080605 09:51:38 UTC (rev 5093) @@ 49,7 +49,7 @@ #++plotpdb_static_ptynum; #ptyname = sprintf("%s%c", ptybase, plotpdb_static_ptynum) if(isstr(pdb)) +if(ischar (pdb)) fname = pdb; [forkstat, fmsg] = fork(); if(forkstat == 0), Modified: trunk/octaveforge/main/image/inst/imread.m ===================================================================  trunk/octaveforge/main/image/inst/imread.m 20080605 09:50:57 UTC (rev 5092) +++ trunk/octaveforge/main/image/inst/imread.m 20080605 09:51:38 UTC (rev 5093) @@ 43,7 +43,7 @@ usage("I = imread(filename)") endif  if !isstr(filename) + if !ischar (filename) error("imread: filename must be a string") endif Modified: trunk/octaveforge/nonfree/arpack/inst/svds.m ===================================================================  trunk/octaveforge/nonfree/arpack/inst/svds.m 20080605 09:50:57 UTC (rev 5092) +++ trunk/octaveforge/nonfree/arpack/inst/svds.m 20080605 09:51:38 UTC (rev 5093) @@ 147,7 +147,7 @@ endif s = diag(s);  if (isstr(sigma)) + if (ischar(sigma)) norma = max(s); else norma = normest(a); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. 
From: <adb014@us...>  20080605 09:50:51

Revision: 5092 http://octave.svn.sourceforge.net/octave/?rev=5092&view=rev Author: adb014 Date: 20080605 02:50:57 0700 (Thu, 05 Jun 2008) Log Message:  texinfo to pdf build fix Modified Paths:  trunk/octaveforge/extra/triangular/doc/Makefile Modified: trunk/octaveforge/extra/triangular/doc/Makefile ===================================================================  trunk/octaveforge/extra/triangular/doc/Makefile 20080605 09:09:52 UTC (rev 5091) +++ trunk/octaveforge/extra/triangular/doc/Makefile 20080605 09:50:57 UTC (rev 5092) @@ 42,11 +42,21 @@ $(DVIPS) o $@ $< ; \ fi +ifeq (,$(TEXI2PDF)) %.pdf : %.dvi @if test "x$(TEXI2DVI)" != "x" && test "x$(DVIPDF)" != "x"; then \ echo "Making pdf $@"; \ $(DVIPDF) $< ; \ fi +else +%.pdf : %.texi + @if test "x$(TEXI2PDF)" != "x"; then \ + echo "Making pdf $@"; \ + TEXINPUTS="./:../../..:$(TEXINPUTS):"; \ + export TEXINPUTS; \ + $(TEXI2PDF) $< ; \ + fi +endif %.info : %.texi @if test "x$(MAKEINFO)" != "x"; then \ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. 
From: <abarth93@us...>  20080605 09:09:45

Revision: 5091 http://octave.svn.sourceforge.net/octave/?rev=5091&view=rev Author: abarth93 Date: 20080605 02:09:52 0700 (Thu, 05 Jun 2008) Log Message:  all highlevel routines call now optiminterpn Modified Paths:  trunk/octaveforge/main/optiminterp/DESCRIPTION trunk/octaveforge/main/optiminterp/inst/optiminterp1.m trunk/octaveforge/main/optiminterp/inst/optiminterp2.m trunk/octaveforge/main/optiminterp/inst/optiminterp3.m trunk/octaveforge/main/optiminterp/inst/optiminterp4.m Added Paths:  trunk/octaveforge/main/optiminterp/inst/optiminterpn.m Modified: trunk/octaveforge/main/optiminterp/DESCRIPTION ===================================================================  trunk/octaveforge/main/optiminterp/DESCRIPTION 20080605 08:12:04 UTC (rev 5090) +++ trunk/octaveforge/main/optiminterp/DESCRIPTION 20080605 09:09:52 UTC (rev 5091) @@ 1,6 +1,6 @@ Name: optiminterp Version: 0.2.7 Date: 20080429 +Version: 0.3.0 +Date: 20080605 Author: Alexander Barth <abarth@...>, Aida AlveraAzc\xE1rate <aalvera@...> Maintainer: Alexander Barth <abarth@...> Title: optiminterp Modified: trunk/octaveforge/main/optiminterp/inst/optiminterp1.m ===================================================================  trunk/octaveforge/main/optiminterp/inst/optiminterp1.m 20080605 08:12:04 UTC (rev 5090) +++ trunk/octaveforge/main/optiminterp/inst/optiminterp1.m 20080605 09:09:52 UTC (rev 5091) @@ 38,26 +38,4 @@ function [fi,vari] = optiminterp1(x,f,var,lenx,m,xi) if (isscalar(var))  var = var*ones(size(x)); end  if isvector(f) & size(f,1) == 1  f = f'; end  if (size(f,1) ~= numel(x) & numel(f) ~= numel(var))  error('optiminterp2: x,var must have the same number of elements'); end  %whos ox f var lenx m  gx(:,1) = xi(:); ox(:,1) = x(:);  %whos ox f var lenx m [fi,vari] = optiminterp(ox,f,var,lenx,m,gx);   %fi = reshape(fi,[numel(xi) size(f,2)]); %vari = reshape(vari,size(xi)); +[fi,vari] = optiminterpn(x,f,var,lenx,m,xi); Modified: trunk/octaveforge/main/optiminterp/inst/optiminterp2.m ===================================================================  trunk/octaveforge/main/optiminterp/inst/optiminterp2.m 20080605 08:12:04 UTC (rev 5090) +++ trunk/octaveforge/main/optiminterp/inst/optiminterp2.m 20080605 09:09:52 UTC (rev 5091) @@ 42,37 +42,4 @@ function [fi,vari] = optiminterp2(x,y,f,var,lenx,leny,m,xi,yi) if (isscalar(var))  var = var*ones(size(x)); end  if isvector(f) & size(f,1) == 1  f = f'; end  on = numel(x); nf = size(f,3);  if (on*nf ~= numel(f) & on ~= numel(y) & on ~= numel(var))  error('optiminterp2: x,y,f,var must have the same number of elements');  return end  if (numel(xi) ~= numel(yi))  error('optiminterp2: xi and yi must have the same number of elements'); end  gx(:,1) = xi(:); gx(:,2) = yi(:);  ox(:,1) = x(:); ox(:,2) = y(:);  f=reshape(f,[on nf]);  %whos ox gx f  [fi,vari] = optiminterp(ox,f,var,[lenx leny],m,gx);  fi = reshape(fi,[size(xi) nf]); vari = reshape(vari,size(xi)); +[fi,vari] = optiminterpn(x,y,f,var,lenx,leny,m,xi,yi); Modified: trunk/octaveforge/main/optiminterp/inst/optiminterp3.m ===================================================================  trunk/octaveforge/main/optiminterp/inst/optiminterp3.m 20080605 08:12:04 UTC (rev 5090) +++ trunk/octaveforge/main/optiminterp/inst/optiminterp3.m 20080605 09:09:52 UTC (rev 5091) @@ 44,38 +44,4 @@ function [fi,vari] = optiminterp3(x,y,z,f,var,lenx,leny,lenz,m,xi,yi,zi) if (isscalar(var))  var = var*ones(size(x)); end  if isvector(f) & size(f,1) == 1  f = f'; end  on = numel(x); nf = size(f,4);  if (on*nf == numel(f) & on ~= numel(y) & ...  on ~= numel(z) & on ~= numel(var))  error('optiminterp3: x,y,z,f,var must have the same number of elements'); end  if (numel(xi) ~= numel(yi) & numel(xi) ~= numel(zi))  error('optiminterp3: xi and yi must have the same number of elements'); end  gx(:,1) = xi(:); gx(:,2) = yi(:); gx(:,3) = zi(:);  ox(:,1) = x(:); ox(:,2) = y(:); ox(:,3) = z(:);  f=reshape(f,[on nf]);  [fi,vari] = optiminterp(ox,f,var,[lenx leny lenz],m,gx);  fi = reshape(fi,[size(xi) nf]); vari = reshape(vari,size(xi));  +[fi,vari] = optiminterpn(x,y,z,f,var,lenx,leny,lenz,m,xi,yi,zi); Modified: trunk/octaveforge/main/optiminterp/inst/optiminterp4.m ===================================================================  trunk/octaveforge/main/optiminterp/inst/optiminterp4.m 20080605 08:12:04 UTC (rev 5090) +++ trunk/octaveforge/main/optiminterp/inst/optiminterp4.m 20080605 09:09:52 UTC (rev 5091) @@ 45,40 +45,4 @@ function [fi,vari] = optiminterp4(x,y,z,t,f,var,lenx,leny,lenz,lent,m,xi,yi,zi,ti) if (isscalar(var))  var = var*ones(size(x)); end  if isvector(f) & size(f,1) == 1  f = f'; end  on = numel(x); nf = size(f,5);  if (on*nf == numel(f) & on ~= numel(y) & on ~= numel(z) & ...  on ~= numel(t) & on ~= numel(var))  error('optiminterp4: x,y,z,t,f,var must have the same number of elements'); end  if (numel(xi) ~= numel(yi) & numel(xi) ~= numel(zi) & numel(xi) ~= numel(ti))  error('optiminterp4: xi, yi, zi and ti must have the same number of elements'); end  gx(:,1) = xi(:); gx(:,2) = yi(:); gx(:,3) = zi(:); gx(:,4) = ti(:);  ox(:,1) = x(:); ox(:,2) = y(:); ox(:,3) = z(:); ox(:,4) = t(:);  f=reshape(f,[on nf]);  [fi,vari] = optiminterp(ox,f,var,[lenx leny lenz lent],m,gx);  fi = reshape(fi,[size(xi) nf]); vari = reshape(vari,size(xi));  +[fi,vari] = optiminterpn(x,y,z,t,f,var,lenx,leny,lenz,lent,m,xi,yi,zi,ti); Copied: trunk/octaveforge/main/optiminterp/inst/optiminterpn.m (from rev 5089, trunk/octaveforge/main/optiminterp/inst/optiminterp2.m) ===================================================================  trunk/octaveforge/main/optiminterp/inst/optiminterpn.m (rev 0) +++ trunk/octaveforge/main/optiminterp/inst/optiminterpn.m 20080605 09:09:52 UTC (rev 5091) @@ 0,0 +1,103 @@ +## Copyright (C) 2008 Alexander Barth +## +## 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 2 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/>;. + +## * texinfo * +## @deftypefn {Loadable Function} {[@var{fi},@var{vari}] = } optiminterpn(@var{x},@var{y},@var{...},@var{f},@var{var},@var{lenx},@var{leny},@var{...},@var{m},@var{xi},@var{yi},@var{...}) +## Performs a local nDoptimal interpolation (objective analysis). +## +## Every elements in @var{f} corresponds to a data point (observation) +## at location @var{x},@var{y},@var{...} with the error variance @var{var}. +## +## @var{lenx},@var{leny},@var{...} are correlation length in xdirection +## ydirection,... respectively. +## @var{m} represents the number of influential points. +## +## @var{xi},@var{yi},@var{...} are the data points where the field is +## interpolated. @var{fi} is the interpolated field and @var{vari} is +## its error variance. +## +## The background field of the optimal interpolation is zero. +## For a different background field, the background field +## must be subtracted from the observation, the difference +## is mapped by OI onto the background grid and finally the +## background is added back to the interpolated field. +## The error variance of the background field is assumed to +## have a error variance of one. +## @end deftypefn + +## Copyright (C) 2008, Alexander Barth +## Author: Alexander Barth <abarth@...> + +# {[@var{fi},@var{vari}] = } optiminterpn(@var{x},@var{y},@var{...},@var{f},@var{var},@var{lenx},@var{leny},@var{len...},@var{m},@var{xi},@var{yi},@var{...}) + +function [fi,vari] = optiminterpn(varargin) + +if nargin < 6  mod(nargin3,3) ~= 0 + error('optiminterpn: wrong number of arguments'); +end + +n = (nargin3)/3; + +x = varargin{1}; +xi = varargin{2*n+4}; +on = numel(varargin{1}); +gsz = size(varargin{2*n+4}); + +for i=1:n + tmp = varargin{i}; + + if on ~= numel(tmp) + error('optiminterpn: x, y,... must have the same number of elements'); + end + + ox(:,i) = tmp(:); + + len(i) = varargin{n+i+2}; + tmp = varargin{2*n+3+i}; + + if (numel(tmp) ~= prod(gsz)) + error('optiminterpn: xi, yi, ... must have the same number of elements'); + end + + gx(:,i) = tmp(:); +end + +f = varargin{n+1}; +var = varargin{n+2}; + +m = varargin{2*n+3}; + +if (isscalar(var)) + var = var*ones(size(x)); +end + +if isvector(f) & size(f,1) == 1 + f = f'; +end + +% is this correct? +nf = size(f,n+1); + +if (on*nf ~= numel(f) & on ~= numel(var)) + error('optiminterpn: x,y,...,var must have the same number of elements'); +end + +f=reshape(f,[on nf]); + +%whos ox f var len m gx +[fi,vari] = optiminterp(ox,f,var,len,m,gx); + +fi = reshape(fi,[gsz nf]); +vari = reshape(vari,gsz); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. 
From: <schloegl@us...>  20080605 08:12:03

Revision: 5090 http://octave.svn.sourceforge.net/octave/?rev=5090&view=rev Author: schloegl Date: 20080605 01:12:04 0700 (Thu, 05 Jun 2008) Log Message:  update license of TSA toolbox to GPLv3 Modified Paths:  trunk/octaveforge/extra/tsa/inst/aar.m trunk/octaveforge/extra/tsa/inst/aarmam.m trunk/octaveforge/extra/tsa/inst/ac2poly.m trunk/octaveforge/extra/tsa/inst/ac2rc.m trunk/octaveforge/extra/tsa/inst/acorf.m trunk/octaveforge/extra/tsa/inst/acovf.m trunk/octaveforge/extra/tsa/inst/adim.m trunk/octaveforge/extra/tsa/inst/amarma.m trunk/octaveforge/extra/tsa/inst/ar2poly.m trunk/octaveforge/extra/tsa/inst/ar2rc.m trunk/octaveforge/extra/tsa/inst/ar_spa.m trunk/octaveforge/extra/tsa/inst/arcext.m trunk/octaveforge/extra/tsa/inst/arfit2.m trunk/octaveforge/extra/tsa/inst/biacovf.m trunk/octaveforge/extra/tsa/inst/bisdemo.m trunk/octaveforge/extra/tsa/inst/bispec.m trunk/octaveforge/extra/tsa/inst/content.m trunk/octaveforge/extra/tsa/inst/contents.m trunk/octaveforge/extra/tsa/inst/detrend.m trunk/octaveforge/extra/tsa/inst/durlev.m trunk/octaveforge/extra/tsa/inst/flag_implicit_samplerate.m trunk/octaveforge/extra/tsa/inst/flix.m trunk/octaveforge/extra/tsa/inst/histo2.m trunk/octaveforge/extra/tsa/inst/histo3.m trunk/octaveforge/extra/tsa/inst/histo4.m trunk/octaveforge/extra/tsa/inst/hup.m trunk/octaveforge/extra/tsa/inst/invest0.m trunk/octaveforge/extra/tsa/inst/invest1.m trunk/octaveforge/extra/tsa/inst/invfdemo.m trunk/octaveforge/extra/tsa/inst/lattice.m trunk/octaveforge/extra/tsa/inst/lpc.m trunk/octaveforge/extra/tsa/inst/mvaar.m trunk/octaveforge/extra/tsa/inst/mvar.m trunk/octaveforge/extra/tsa/inst/mvfilter.m trunk/octaveforge/extra/tsa/inst/mvfreqz.m trunk/octaveforge/extra/tsa/inst/pacf.m trunk/octaveforge/extra/tsa/inst/parcor.m trunk/octaveforge/extra/tsa/inst/poly2ac.m trunk/octaveforge/extra/tsa/inst/poly2ar.m trunk/octaveforge/extra/tsa/inst/poly2rc.m trunk/octaveforge/extra/tsa/inst/rc2ac.m trunk/octaveforge/extra/tsa/inst/rc2ar.m trunk/octaveforge/extra/tsa/inst/rc2poly.m trunk/octaveforge/extra/tsa/inst/rmle.m trunk/octaveforge/extra/tsa/inst/sbispec.m trunk/octaveforge/extra/tsa/inst/selmo.m trunk/octaveforge/extra/tsa/inst/selmo2.m trunk/octaveforge/extra/tsa/inst/sinvest1.m trunk/octaveforge/extra/tsa/inst/tsademo.m trunk/octaveforge/extra/tsa/inst/ucp.m trunk/octaveforge/extra/tsa/inst/y2res.m Modified: trunk/octaveforge/extra/tsa/inst/aar.m ===================================================================  trunk/octaveforge/extra/tsa/inst/aar.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/aar.m 20080605 08:12:04 UTC (rev 5090) @@ 44,30 +44,23 @@ % http://www.dpmi.tugraz.ac.at/~schloegl/publications/ % % $Revision$ % $Id$ % Copyright (C) 19982003 by Alois Schloegl <a.schloegl@...> %  +% 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 library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % version 2 of the License, or (at your option) any later version. % % This library 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 % Library General Public License for more details. +% 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 Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% You should have received a copy of the GNU General Public License +% along with this program. If not, see <http://www.gnu.org/licenses/>;. % for compilation with the Matlab compiler mcc V1.2 ir %#realonly %#inbounds  [nc,nr]=size(y); %if nc<nr y=y'; end; tmp=nr;nc=nr; nr=tmp;end; Modified: trunk/octaveforge/extra/tsa/inst/aarmam.m ===================================================================  trunk/octaveforge/extra/tsa/inst/aarmam.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/aarmam.m 20080605 08:12:04 UTC (rev 5090) @@ 39,29 +39,22 @@ % More references can be found at % http://www.dpmi.tugraz.ac.at/~schloegl/publications/ % Version 2.99 07 Aug 2002 % Copyright (C) 19982002 by Alois Schloegl <a.schloegl@...> +% $Id$ +% Copyright (C) 19982002,2008 by Alois Schloegl <a.schloegl@...> % % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % version 2 of the License, or (at your option) any later version. % % This library 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 % Library General Public License for more details. +% 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. % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. % 12.04.1999 ESU included % 19.10.2000 aMode 13,14 included % NaN handling % 06.07.2002 Docu improved, included into TSA % 11.07.2002 nanmean replaced by mean % 07.08.2002 cosmetic changes  %#realonly %#inbounds Modified: trunk/octaveforge/extra/tsa/inst/ac2poly.m ===================================================================  trunk/octaveforge/extra/tsa/inst/ac2poly.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/ac2poly.m 20080605 08:12:04 UTC (rev 5090) @@ 5,21 +5,21 @@ % see also ACOVF ACORF AR2RC RC2AR DURLEV AC2POLY, POLY2RC, RC2POLY, RC2AC, AC2RC, POLY2AC % % Version 2.91 % Copyright (C) 19962002 by Alois Schloegl <a.schloegl@...>  % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % Version 2 of the License, or (at your option) any later version. +% $Id$ +% Copyright (C) 19982002,2008 by Alois Schloegl <a.schloegl@...> % % This library 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 % Library General Public License for more details. +% 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. % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. if all(size(acf))>1, Modified: trunk/octaveforge/extra/tsa/inst/ac2rc.m ===================================================================  trunk/octaveforge/extra/tsa/inst/ac2rc.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/ac2rc.m 20080605 08:12:04 UTC (rev 5090) @@ 5,23 +5,24 @@ % see also ACOVF ACORF AR2RC RC2AR DURLEV AC2POLY, POLY2RC, RC2POLY, RC2AC, AC2RC, POLY2AC % % Version 2.90 last revision 10.04.2002 % Copyright (C) 19962002 by Alois Schloegl <a.schloegl@...>  % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % Version 2 of the License, or (at your option) any later version. +% $Id$ +% Copyright (C) 19982002,2008 by Alois Schloegl <a.schloegl@...> % % This library 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 % Library General Public License for more details. +% 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. % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. + if all(size(AC))>1, fprintf(2,'Error AC2RC: "r" must be a vector\n'); return; Modified: trunk/octaveforge/extra/tsa/inst/acorf.m ===================================================================  trunk/octaveforge/extra/tsa/inst/acorf.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/acorf.m 20080605 08:12:04 UTC (rev 5090) @@ 29,25 +29,26 @@ % W.S. Wei "Time Series Analysis" Addison Wesley, 1990. % J.S. Bendat and A.G.Persol "Random Data: Analysis and Measurement procedures", Wiley, 1986. % Version 2.99a Date: 13 Jul 2002 % Copyright (C) 19982002 by Alois Schloegl <a.schloegl@...>  % calculating lpq, stderr, qpval from % suggested by Philip Gray, University of New South Wales, % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % version 2 of the License, or (at your option) any later version. % % This library 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 % Library General Public License for more details. +% $Id$ +% Copyright (C) 19982002,2008 by Alois Schloegl <a.schloegl@...> % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. + [nr,nc] = size(Z); NC = sum(~isnan(Z),2); % missing values Modified: trunk/octaveforge/extra/tsa/inst/acovf.m ===================================================================  trunk/octaveforge/extra/tsa/inst/acovf.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/acovf.m 20080605 08:12:04 UTC (rev 5090) @@ 24,24 +24,24 @@ % W.S. Wei "Time Series Analysis" Addison Wesley, 1990. % J.S. Bendat and A.G.Persol "Random Data: Analysis and Measurement procedures", Wiley, 1986. % $Revision$ % $Id$ % Copyright (C) 19982003 by Alois Schloegl <a.schloegl@...>  % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % version 2 of the License, or (at your option) any later version. % % This library 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 % Library General Public License for more details. +% Copyright (C) 19982003,2008 by Alois Schloegl <a.schloegl@...> % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. + if nargin<3, Mode='biased'; end; [lr,lc] = size(Z); Modified: trunk/octaveforge/extra/tsa/inst/adim.m ===================================================================  trunk/octaveforge/extra/tsa/inst/adim.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/adim.m 20080605 08:12:04 UTC (rev 5090) @@ 19,25 +19,23 @@ % pp. 565567, Equ. (13.16), 1996. % $Revision$ % $Id$ % Copyright (C) 19982003 by Alois Schloegl <a.schloegl@...> %  +% 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 library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % version 2 of the License, or (at your option) any later version. % % This library 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 % Library General Public License for more details. +% 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 Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% You should have received a copy of the GNU General Public License +% along with this program. If not, see <http://www.gnu.org/licenses/>;. + [ur,p] = size(U); Modified: trunk/octaveforge/extra/tsa/inst/amarma.m ===================================================================  trunk/octaveforge/extra/tsa/inst/amarma.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/amarma.m 20080605 08:12:04 UTC (rev 5090) @@ 45,11 +45,20 @@ % $Id$ % Copyright (C) 19982002,2005,2006,2007,2008 by Alois Schloegl <a.schloegl@...> % +% 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/>;. %#realonly %#inbounds  [nc,nr]=size(y); if nargin<2 Mode=0; Modified: trunk/octaveforge/extra/tsa/inst/ar2poly.m ===================================================================  trunk/octaveforge/extra/tsa/inst/ar2poly.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/ar2poly.m 20080605 08:12:04 UTC (rev 5090) @@ 18,21 +18,21 @@ % M.B. Priestley "Spectral Analysis and Time Series" Academic Press, 1981. % W.S. Wei "Time Series Analysis" Addison Wesley, 1990. % Version 2.90 last revision 10.04.2002 % Copyright (C) 19962002 by Alois Schloegl <a.schloegl@...>  % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % Version 2 of the License, or (at your option) any later version. +% $Id$ +% Copyright (C) 19982002,2008 by Alois Schloegl <a.schloegl@...> % % This library 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 % Library General Public License for more details. +% 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. % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. % Inititialization [lr,lc]=size(A); Modified: trunk/octaveforge/extra/tsa/inst/ar2rc.m ===================================================================  trunk/octaveforge/extra/tsa/inst/ar2rc.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/ar2rc.m 20080605 08:12:04 UTC (rev 5090) @@ 26,21 +26,21 @@ % M.B. Priestley "Spectral Analysis and Time Series" Academic Press, 1981. % W.S. Wei "Time Series Analysis" Addison Wesley, 1990. % Version 2.90 last revision 10.04.2002 % Copyright (C) 19962002 by Alois Schloegl <a.schloegl@...>  % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % Version 2 of the License, or (at your option) any later version. +% $Id$ +% Copyright (C) 19982002,2008 by Alois Schloegl <a.schloegl@...> % % This library 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 % Library General Public License for more details. +% 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. % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. % Inititialization [lr,lc]=size(ar); Modified: trunk/octaveforge/extra/tsa/inst/ar_spa.m ===================================================================  trunk/octaveforge/extra/tsa/inst/ar_spa.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/ar_spa.m 20080605 08:12:04 UTC (rev 5090) @@ 28,26 +28,24 @@ % [2] Isaksson A. and Wennberg, A. (1975) Visual evaluation and computer analysis of the EEG  A comparison. Electroenceph. clin. Neurophysiol., 38: 7986. % [3] G. Florian and G. Pfurtscheller (1994) Autoregressive model based spectral analysis with application to EEG. IIG  Report Series, University of Technolgy Graz, Austria. % $Revision$ % $Id$ % Copyright (C) 19962003 by Alois Schloegl <a.schloegl@...> % This is part of the TSAtoolbox see also: % http://www.dpmi.tugraz.ac.at/schloegl/matlab/tsa/ +% http://hci.tugraz.at/schloegl/matlab/tsa/ % http://octave.sf.net/   % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % Version 2 of the License, or (at your option) any later version. % % This library 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 % Library General Public License for more details. +% 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. % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. [NTR,pp]=size(ARP); Modified: trunk/octaveforge/extra/tsa/inst/arcext.m ===================================================================  trunk/octaveforge/extra/tsa/inst/arcext.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/arcext.m 20080605 08:12:04 UTC (rev 5090) @@ 21,22 +21,21 @@ % M.B. Priestley "Spectral Analysis and Time Series" Academic Press, 1981. % W.S. Wei "Time Series Analysis" Addison Wesley, 1990. % $Revision$ % $Id$ % Copyright (C) 19982003 by Alois Schloegl <a.schloegl@...>  % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % Version 2 of the License, or (at your option) any later version. +% Copyright (C) 19982003,2008 by Alois Schloegl <a.schloegl@...> % % This library 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 % Library General Public License for more details. +% 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. % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. [lr,lc]=size(MX); Modified: trunk/octaveforge/extra/tsa/inst/arfit2.m ===================================================================  trunk/octaveforge/extra/tsa/inst/arfit2.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/arfit2.m 20080605 08:12:04 UTC (rev 5090) @@ 33,10 +33,11 @@ % Algorithm 808: ARFITa Matlab package for the estimation of parameters and eigenmodes % of multivariate autoregressive models. ACMTransactions on Mathematical Software. 27, (Mar.), 5865. % $Revision$ % $Id$ % Copyright (C) 19962005,2008 by Alois Schloegl <a.schloegl@...> + + %%%%% checking of the input arguments was done the same way as ARFIT if (pmin ~= round(pmin)  pmax ~= round(pmax)) error('Order must be integer.'); Modified: trunk/octaveforge/extra/tsa/inst/biacovf.m ===================================================================  trunk/octaveforge/extra/tsa/inst/biacovf.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/biacovf.m 20080605 08:12:04 UTC (rev 5090) @@ 7,22 +7,21 @@ % Output: BIACF biautocorrelation function (joint cumulant 3rd order % Output: ACF covariance function (joint cumulant 2nd order) % Version 2.30 % last revision 21.03.1998 % Copyright (C) 1997, 1998 by Alois Schloegl <a.schloegl@...>  % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % version 2 of the License, or (at your option) any later version. % % This library 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 % Library General Public License for more details. +% $Id$ +% Copyright (C) 1997, 1998, 2008 by Alois Schloegl <a.schloegl@...> % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. ACF=zeros(1,N+1); BIACF=zeros(N+1,N+1); Modified: trunk/octaveforge/extra/tsa/inst/bisdemo.m ===================================================================  trunk/octaveforge/extra/tsa/inst/bisdemo.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/bisdemo.m 20080605 08:12:04 UTC (rev 5090) @@ 1,20 +1,20 @@ % BISDEMO (script) Shows BISPECTRUM of eeg8s.mat % Version 2.44 % last revision 22.06.1998 % Copyright (C) 19971998 by Alois Schloegl <a.schloegl@...> % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % version 2 of the License, or (at your option) any later version. % % This library 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 % Library General Public License for more details. +% $Id$ +% Copyright (C) 1997, 1998,2008 by Alois Schloegl <a.schloegl@...> % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. load eeg8s.mat; [BISPEC,BICOV,ACF]=bispec(eeg8s,30); Modified: trunk/octaveforge/extra/tsa/inst/bispec.m ===================================================================  trunk/octaveforge/extra/tsa/inst/bispec.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/bispec.m 20080605 08:12:04 UTC (rev 5090) @@ 11,23 +11,23 @@ % C.L. Nikias and A.P. Petropulu "HigherOrder Spectra Analysis" Prentice Hall, 1993. % M.B. Priestley, "Nonlinear and Nonstationary Time series Analysis", Academic Press, London, 1988. % $Revision$ % $Id$ % Copyright (C) 19972003 by Alois Schloegl <a.schloegl@...>  % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % version 2 of the License, or (at your option) any later version. % % This library 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 % Library General Public License for more details. +% Copyright (C) 19972003,2008 by Alois Schloegl <a.schloegl@...> % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. + P=N+1; ACF=zeros(1,N+1); BIACF=zeros(2*N+1,2*N+1); Modified: trunk/octaveforge/extra/tsa/inst/content.m ===================================================================  trunk/octaveforge/extra/tsa/inst/content.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/content.m 20080605 08:12:04 UTC (rev 5090) @@ 1,9 +1,9 @@ % Time Series Analysis (Ver 3.10) % Schloegl A. (19962003) Time Series Analysis  A Toolbox for the use with Matlab. % WWW: http://www.dpmi.tugraz.ac.at/~schloegl/matlab/tsa/ +% Schloegl A. (19962003,2008) Time Series Analysis  A Toolbox for the use with Matlab. +% WWW: http://hci.tugraz.at/~schloegl/matlab/tsa/ % % Version 3.10 Date: 25. Feb 2003 % Copyright (C) 19962003 by Alois Schloegl <a.schloegl@...> +% $Id$ +% Copyright (C) 19962003,2008 by Alois Schloegl <a.schloegl@...> % % Time Series Analysis  a toolbox for the use with Matlab % aar adaptive autoregressive estimator Modified: trunk/octaveforge/extra/tsa/inst/contents.m ===================================================================  trunk/octaveforge/extra/tsa/inst/contents.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/contents.m 20080605 08:12:04 UTC (rev 5090) @@ 1,25 +1,22 @@ % Time Series Analysis  A toolbox for the use with Matlab and Octave. % % Copyright (C) 19962004 by Alois Schloegl <a.schloegl@...> % WWW: http://www.dpmi.tugraz.ac.at/~schloegl/matlab/tsa/ % $Revision$ % $Id$ % +% Copyright (C) 19962004,2008 by Alois Schloegl <a.schloegl@...> +% WWW: http://hci.tugraz.at/~schloegl/matlab/tsa/ % % LICENSE: % 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 2 of the License, or % (at your option) any later version. +% 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/>;. % % 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/>;. % % % Time Series Analysis  a toolbox for the use with Matlab % aar adaptive autoregressive estimator Modified: trunk/octaveforge/extra/tsa/inst/detrend.m ===================================================================  trunk/octaveforge/extra/tsa/inst/detrend.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/detrend.m 20080605 08:12:04 UTC (rev 5090) @@ 31,9 +31,16 @@ % % see also: SUMSKIPNAN, ZSCORE % This program is free software; you can redistribute it and/or modify +% Copyright (C) 1995, 1996 Kurt Hornik <Kurt.Hornik@...> +% $Id$ +% Copyright (C) 2001,2007 by Alois Schloegl <a.schloegl@...> +% This function is part of the TSAtoolbox +% http://www.dpmi.tugraz.ac.at/~schloegl/matlab/tsa/ +% Copyright (C) 1997, 1998, 2008 by Alois Schloegl <a.schloegl@...> +% +% 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 2 of the License, or +% 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, @@ 42,16 +49,9 @@ % 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/>;. +% along with this program. If not, see <http://www.gnu.org/licenses/>;. % Copyright (C) 1995, 1996 Kurt Hornik <Kurt.Hornik@...> % $Id$ % Copyright (C) 2001,2007 by Alois Schloegl <a.schloegl@...> % This function is part of the TSAtoolbox % http://www.dpmi.tugraz.ac.at/~schloegl/matlab/tsa/   if (nargin == 1) p = 1; X = t; Modified: trunk/octaveforge/extra/tsa/inst/durlev.m ===================================================================  trunk/octaveforge/extra/tsa/inst/durlev.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/durlev.m 20080605 08:12:04 UTC (rev 5090) @@ 28,21 +28,21 @@ % M.B. Priestley "Spectral Analysis and Time Series" Academic Press, 1981. % W.S. Wei "Time Series Analysis" Addison Wesley, 1990. % Version 2.99 23.05.2002 % Copyright (C) 19982002 by Alois Schloegl <a.schloegl@...>  % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % Version 2 of the License, or (at your option) any later version. +% $Id$ +% Copyright (C) 19982002,2008 by Alois Schloegl <a.schloegl@...> % % This library 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 % Library General Public License for more details. +% 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. % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. % Inititialization Modified: trunk/octaveforge/extra/tsa/inst/flag_implicit_samplerate.m ===================================================================  trunk/octaveforge/extra/tsa/inst/flag_implicit_samplerate.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/flag_implicit_samplerate.m 20080605 08:12:04 UTC (rev 5090) @@ 29,9 +29,12 @@ % % see also: SINVEST1 % This program is free software; you can redistribute it and/or modify +% $Id$ +% Copyright (C) 20002002,2008 by Alois Schloegl <a.schloegl@...> +% +% 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 2 of the License, or +% 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, @@ 40,11 +43,8 @@ % 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/>;. +% along with this program. If not, see <http://www.gnu.org/licenses/>;. % Version 2.99; 10 May 2002 % Copyright (C) 20002002 by Alois Schloegl <a.schloegl@...>  global FLAG_implicit_samplerate; %%% check whether FLAG was already defined Modified: trunk/octaveforge/extra/tsa/inst/flix.m ===================================================================  trunk/octaveforge/extra/tsa/inst/flix.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/flix.m 20080605 08:12:04 UTC (rev 5090) @@ 15,10 +15,15 @@ % % see also: HIST2RES, Y2RES, PLOTCDF, INTERP1  % This program is free software; you can redistribute it and/or modify +% $Id$ +% Copyright (C) by 20012005,2008 Alois Schloegl <a.schloegl@...> +% This is part of the TSAtoolbox see also: +% http://www.dpmi.tugraz.ac.at/schloegl/matlab/tsa/ +% http://octave.sf.net/ +% +% 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 2 of the License, or +% 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, @@ 27,14 +32,8 @@ % 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/>;. +% along with this program. If not, see <http://www.gnu.org/licenses/>;. % $Id$ % Copyright (C) by 20012005 Alois Schloegl <a.schloegl@...> % This is part of the TSAtoolbox see also: % http://www.dpmi.tugraz.ac.at/schloegl/matlab/tsa/ % http://octave.sf.net/  D = D(:); Y = x; Modified: trunk/octaveforge/extra/tsa/inst/histo2.m ===================================================================  trunk/octaveforge/extra/tsa/inst/histo2.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/histo2.m 20080605 08:12:04 UTC (rev 5090) @@ 15,39 +15,25 @@ % REFERENCE(S): % C.E. Shannon and W. Weaver "The mathematical theory of communication" University of Illinois Press, Urbana 1949 (reprint 1963). % V 3.00 9.11.2002 minor modifications % 05.04.2002 docu modified % V 2.84 16.02.2002 minor bug fixed % V 2.83 06.02.2002 % V 2.82 31.01.2002 AUTO changed to nonequidistant bins % V 2.75 30.08.2001 semicolon % 10.07.2001 Entropy of multiple channels fixed % 04.05.2001 display improved % V 2.74 20.04.2001 bug fixed for case N==1, x =minY; % 13.03.2001 scaling of x corrected % V 2.72 08.03.2001 third argin, specifies the number of bins % 26.11.2000 bug fixed (entropy calculation) % V 2.69 25.10.2000 revised (nan's are considered) % V 2.68 28.07.2000 revised % V 2.63 18.10.1999 multiple rows implemented % 26.11.1999 bug fixed (size of H corrected);  % Version 3.00 Date: 09 Nov 2002 % Copyright (C) 19962002 by Alois Schloegl <a.schloegl@...>  % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % Version 2 of the License, or (at your option) any later version. +% $Id$ +% Copyright (C) 19962002,2008 by Alois Schloegl <a.schloegl@...> +% This is part of the TSAtoolbox +% http://hci.tugraz.at/~schloegl/matlab/tsa/ % % This library 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 % Library General Public License for more details. +% 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. % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. + [yr,yc] = size(Y); if yr==1, Modified: trunk/octaveforge/extra/tsa/inst/histo3.m ===================================================================  trunk/octaveforge/extra/tsa/inst/histo3.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/histo3.m 20080605 08:12:04 UTC (rev 5090) @@ 25,39 +25,26 @@ % REFERENCE(S): % C.E. Shannon and W. Weaver "The mathematical theory of communication" University of Illinois Press, Urbana 1949 (reprint 1963). % V 3.00 9.11.2002 compression included % 5.04.2002 docu modified % 21.02.2002 major changes, single X for all channels % V 2.84 16.02.2002 minor bug fixed % V 2.83 06.02.2002 % V 2.82 31.01.2002 AUTO changed to nonequidistant bins % V 2.75 30.08.2001 semicolon % 10.07.2001 Entropy of multiple channels fixed % 04.05.2001 display improved % V 2.74 20.04.2001 bug fixed for case N==1, x =minY; % 13.03.2001 scaling of x corrected % V 2.72 08.03.2001 third argin, specifies the number of bins % 26.11.2000 bug fixed (entropy calculation) % V 2.69 25.10.2000 revised (nan's are considered) % V 2.68 28.07.2000 revised % V 2.63 18.10.1999 multiple rows implemented % 26.11.1999 bug fixed (size of H corrected); % Version 3.00 Date: 09 Nov 2002 % Copyright (C) 19962002 by Alois Schloegl <a.schloegl@...>  % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % Version 2 of the License, or (at your option) any later version. +% $Id$ +% Copyright (C) 19962002,2008 by Alois Schloegl <a.schloegl@...> +% This is part of the TSAtoolbox. See also +% http://hci.tugraz.at/schloegl/matlab/tsa/ +% http://octave.sourceforge.net/ +% http://biosig.sourceforge.net/ % % This library 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 % Library General Public License for more details. +% 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. % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. [yr,yc]=size(Y); @@ 120,7 +107,7 @@ else tmp = R.N(k); end;  + t = 0; j = 1; for x = tmp', Modified: trunk/octaveforge/extra/tsa/inst/histo4.m ===================================================================  trunk/octaveforge/extra/tsa/inst/histo4.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/histo4.m 20080605 08:12:04 UTC (rev 5090) @@ 23,22 +23,22 @@ % $Id$ % Copyright (C) 19962005 by Alois Schloegl <a.schloegl@...> +% Copyright (C) 19962005,2008 by Alois Schloegl <a.schloegl@...> % This is part of the TSAtoolbox % http://www.dpmi.tugraz.at/~schloegl/matlab/tsa/  % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % Version 2 of the License, or (at your option) any later version. +% http://hci.tugraz.at/~schloegl/matlab/tsa/ % % This library 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 % Library General Public License for more details. +% 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. % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. [yr, yc] = size(Y); Modified: trunk/octaveforge/extra/tsa/inst/hup.m ===================================================================  trunk/octaveforge/extra/tsa/inst/hup.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/hup.m 20080605 08:12:04 UTC (rev 5090) @@ 15,23 +15,22 @@ % F. Gausch "Systemtechnik", Textbook, University of Technology Graz, 1993. % Ch. Langraf and G. Schneider "Elemente der Regeltechnik", Springer Verlag, 1970. % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % Version 2 of the License, or (at your option) any later version. +% $Id$ +% Copyright (c) 19951998,2008 by Alois Schloegl <a.schloegl@...> % % This library 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 % Library General Public License for more details. +% 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. % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. % Version 2.43 % 23.April 1998 % Copyright (c) 19951998 by Alois Schloegl <a.schloegl@...>  [lr,lc] = size(c); % Strip leading zeros and throw away. Modified: trunk/octaveforge/extra/tsa/inst/invest0.m ===================================================================  trunk/octaveforge/extra/tsa/inst/invest0.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/invest0.m 20080605 08:12:04 UTC (rev 5090) @@ 22,22 +22,21 @@ % M.B. Priestley "Spectral Analysis and Time Series" Academic Press, 1981. % W.S. Wei "Time Series Analysis" Addison Wesley, 1990. % Copyright (C) 19982003 by Alois Schloegl <a.schloegl@...> % $Revision$ % $Id$  % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % Version 2 of the License, or (at your option) any later version. +% Copyright (C) 19982003,2008 by Alois Schloegl <a.schloegl@...> % % This library 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 % Library General Public License for more details. +% 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. % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. if nargin<3 Mode=0; Modified: trunk/octaveforge/extra/tsa/inst/invest1.m ===================================================================  trunk/octaveforge/extra/tsa/inst/invest1.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/invest1.m 20080605 08:12:04 UTC (rev 5090) @@ 39,21 +39,21 @@ % optPHI order where PHI is minimal % optRC2 max reflection coefficient larger than stderror % Version 2.99 23.05.2002 % Copyright (C) 19982002 by Alois Schloegl <a.schloegl@...>  % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % Version 2 of the License, or (at your option) any later version. +% $Id$ +% Copyright (C) 19982002,2008 by Alois Schloegl <a.schloegl@...> % % This library 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 % Library General Public License for more details. +% 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. % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. N=length(Y); [nr,nc]=size(Y); Modified: trunk/octaveforge/extra/tsa/inst/invfdemo.m ===================================================================  trunk/octaveforge/extra/tsa/inst/invfdemo.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/invfdemo.m 20080605 08:12:04 UTC (rev 5090) @@ 1,21 +1,20 @@ % invfdemo demonstrates Inverse Filtering % Version 2.90 % last revision 24.03.2002 % Copyright (C) 19972002 by Alois Schloegl <a.schloegl@...>  % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % Version 2 of the License, or (at your option) any later version. +% $Id$ +% Copyright (C) 19972002,2008 by Alois Schloegl <a.schloegl@...> % % This library 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 % Library General Public License for more details. +% 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. % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. load eeg8s.mat; % load signal ly=length(eeg8s); Modified: trunk/octaveforge/extra/tsa/inst/lattice.m ===================================================================  trunk/octaveforge/extra/tsa/inst/lattice.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/lattice.m 20080605 08:12:04 UTC (rev 5090) @@ 35,40 +35,23 @@ % M.B. Priestley "Spectral Analysis and Time Series" Academic Press, 1981. % W.S. Wei "Time Series Analysis" Addison Wesley, 1990. % Version 2.90 % last revision 06.04.2002 % Copyright (C) 19962002 by Alois Schloegl <a.schloegl@...> +% $Id$ +% Copyright (C) 19962002,2008 by Alois Schloegl <a.schloegl@...> % % .changelog TSAtoolbox % 06.04.02 LATTICE.M V2.90 % 27.02.02 LATTICE.M minor bug fix % 08.02.02 LATTICE.M bootstrap shows that V2.83 is preferable % 08.02.02 LATTICE.M V2.83 saved as lattice283 % 08.02.02 LATTICE.M V2.82 saved as lattice282 % 04.02.02 LATTICE.M V2.83 % normalization changed from 1 (mean) to (k1)/k (sum) % 08.11.01 LATTICE.M V2.75 % help improved % 11.04.01 LATTICE.M V2.73 % 1) sum (and sumskipnan's) were replaced by mean, this has the effect of % normalizing with actual number of elements. This seem to improve the estimates % 2) residual tested, seem to be smaller than for estimates with AR.M % 3) handling of NaN (i.e. Missing values) is hidden in NaN/mean % in other words, if NaN/mean is used this algorithm can be used for data with missing values, too.  % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % Version 2 of the License, or (at your option) any later version. +% 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 library 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 % Library General Public License for more details. +% 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 Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% You should have received a copy of the GNU General Public License +% along with this program. If not, see <http://www.gnu.org/licenses/>;. + if nargin<3, Mode='BURG'; else Mode=upper(Mode(1:4));end; BURG=~strcmp(Mode,'GEOL'); Modified: trunk/octaveforge/extra/tsa/inst/lpc.m ===================================================================  trunk/octaveforge/extra/tsa/inst/lpc.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/lpc.m 20080605 08:12:04 UTC (rev 5090) @@ 34,19 +34,19 @@ % Copyright (C) 19962002,2008 by Alois Schloegl <a.schloegl@...> % This is part of the TSAtoolbox. See also % http://hci.tugraz.at/schloegl/matlab/tsa/  % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % Version 2 of the License, or (at your option) any later version. % % This library 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 % Library General Public License for more details. +% 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. % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. [yr,yc] = size(Y); Modified: trunk/octaveforge/extra/tsa/inst/mvaar.m ===================================================================  trunk/octaveforge/extra/tsa/inst/mvaar.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/mvaar.m 20080605 08:12:04 UTC (rev 5090) @@ 26,31 +26,24 @@ % Q2 measurement noise covariance matrix of dimension s x s % % Copyright (C) 20012002 Christian Kasess % $Revision$ % $Id$ % Modifications (C) 2003 Alois Schloegl <a.schloegl@...> % docu improved % check for isnan(ERR) included % code straightened   +% Copyright (C) 20012002 Christian Kasess +% Copyright (C) 2003, 2008 Alois Schloegl % % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % version 2 of the License, or (at your option) any later version. % % This library 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 % Library General Public License for more details. +% 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. % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;.  if nargin<4, mode=0; end; Modified: trunk/octaveforge/extra/tsa/inst/mvar.m ===================================================================  trunk/octaveforge/extra/tsa/inst/mvar.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/mvar.m 20080605 08:12:04 UTC (rev 5090) @@ 51,34 +51,27 @@ % % see also: MVFILTER, MVFREQZ, COVM, SUMSKIPNAN, ARFIT2 % $Revision$ % $Id$ % Copyright (C) 19962006 by Alois Schloegl <a.schloegl@...> % This is part of the TSAtoolbox. See also % http://hci.tugraz.at/schloegl/matlab/tsa/ % http://octave.sourceforge.net/ % http://biosig.sourceforge.net/  % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % Version 2 of the License, or (at your option) any later version. % % This library 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 % Library General Public License for more details. +% 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. % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. % CHANGELOG: %  SUPPORT for ARFIT, BURGV added %  imputation methods added %  Correct scaling of PE and covariance matrices. %  some experimental versions added.  % Inititialization [N,M] = size(Y); Modified: trunk/octaveforge/extra/tsa/inst/mvfilter.m ===================================================================  trunk/octaveforge/extra/tsa/inst/mvfilter.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/mvfilter.m 20080605 08:12:04 UTC (rev 5090) @@ 28,22 +28,21 @@ % % see also: MVAR, FILTER % $Revision$ % $Id$ % Copyright (C) 19962003 by Alois Schloegl <a.schloegl@...>  % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % Version 2 of the License, or (at your option) any later version. % % This library 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 % Library General Public License for more details. +% 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. % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. [ra, ca] = size(A); Modified: trunk/octaveforge/extra/tsa/inst/mvfreqz.m ===================================================================  trunk/octaveforge/extra/tsa/inst/mvfreqz.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/mvfreqz.m 20080605 08:12:04 UTC (rev 5090) @@ 28,6 +28,7 @@ % OUTPUT: % ======= % S power spectrum +% h transfer functions, abs(h.^2) is the nonnormalized DTF % PDC partial directed coherence [2] % DC directed coupling % COH coherency (complex coherence) [5] @@ 74,27 +75,29 @@ % Eds. B. Schelter, M. Winterhalder, J. Timmer: % Handbook of Time Series Analysis  Recent Theoretical Developments and Applications % Wiley, p.413, 2006. +% [11] M. Eichler +% On the evaluation of informatino flow in multivariate systems by the directed transfer function +% Biol. Cybern. 94: 469482, 2006. % $Id$ % Copyright (C) 19962007 by Alois Schloegl <a.schloegl@...> +% Copyright (C) 19962008 by Alois Schloegl <a.schloegl@...> % This is part of the TSAtoolbox. See also % http://hci.tugraz.at/schloegl/matlab/tsa/ % http://octave.sourceforge.net/ % http://biosig.sourceforge.net/   % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % Version 3 of the License, or (at your option) any later version. % % This library 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 % Library General Public License for more details. +% 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. % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. [K1,K2] = size(A); p = K2/K11; Modified: trunk/octaveforge/extra/tsa/inst/pacf.m ===================================================================  trunk/octaveforge/extra/tsa/inst/pacf.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/pacf.m 20080605 08:12:04 UTC (rev 5090) @@ 15,21 +15,21 @@ % see also: DURLEV, LATTICE, AC2RC, AR2RC, % FLAG_IMPLICIT_SIGNIFICANCE % Version 2.99b Date: 24Sep 2002 % Copyright (C) 19972002 by Alois Schloegl <a.schloegl@...> +% $Id$ +% Copyright (C) 19972002,2008 by Alois Schloegl <a.schloegl@...> % % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % Version 2 of the License, or (at your option) any later version. +% 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 library 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 % Library General Public License for more details. +% 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 Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% You should have received a copy of the GNU General Public License +% along with this program. If not, see <http://www.gnu.org/licenses/>;. [nr,nc] = size(Z); if nc<KMAX, Modified: trunk/octaveforge/extra/tsa/inst/parcor.m ===================================================================  trunk/octaveforge/extra/tsa/inst/parcor.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/parcor.m 20080605 08:12:04 UTC (rev 5090) @@ 27,21 +27,23 @@ % M.B. Priestley "Spectral Analysis and Time Series" Academic Press, 1981. % W.S. Wei "Time Series Analysis" Addison Wesley, 1990. % Version 2.99b 24 Oct 2002 % Copyright (C) 19982002 by Alois Schloegl <a.schloegl@...> % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % Version 2 of the License, or (at your option) any later version. +% $Id$ +% Copyright (C) 19972002,2008 by Alois Schloegl <a.schloegl@...> % % This library 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 % Library General Public License for more details. +% 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. % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. + [ARP,PARCOR,PE] = durlev(AutoCov); PARCOR=PARCOR; Modified: trunk/octaveforge/extra/tsa/inst/poly2ac.m ===================================================================  trunk/octaveforge/extra/tsa/inst/poly2ac.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/poly2ac.m 20080605 08:12:04 UTC (rev 5090) @@ 5,21 +5,21 @@ % see also ACOVF ACORF AR2RC RC2AR DURLEV AC2POLY, POLY2RC, RC2POLY, RC2AC, AC2RC, POLY2AC % % Version 2.90 last revision 10.04.2002 % Copyright (C) 19962002 by Alois Schloegl <a.schloegl@...>  % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % Version 2 of the License, or (at your option) any later version. +% $Id$ +% Copyright (C) 19982002,2008 by Alois Schloegl <a.schloegl@...> % % This library 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 % Library General Public License for more details. +% 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. % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. fprintf(2,'ERROR: POLY2AC does not work yet. Sorry\n'); Modified: trunk/octaveforge/extra/tsa/inst/poly2ar.m ===================================================================  trunk/octaveforge/extra/tsa/inst/poly2ar.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/poly2ar.m 20080605 08:12:04 UTC (rev 5090) @@ 12,21 +12,21 @@ % % see also ACOVF ACORF DURLEV RC2AR AR2POLY % Version 2.90 % Copyright (C) 19962002 by Alois Schloegl <a.schloegl@...>  % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % Version 2 of the License, or (at your option) any later version. +% $Id$ +% Copyright (C) 19982002,2008 by Alois Schloegl <a.schloegl@...> % % This library 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 % Library General Public License for more details. +% 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. % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. % Inititialization [lr,lc]=size(A); Modified: trunk/octaveforge/extra/tsa/inst/poly2rc.m ===================================================================  trunk/octaveforge/extra/tsa/inst/poly2rc.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/poly2rc.m 20080605 08:12:04 UTC (rev 5090) @@ 13,23 +13,22 @@ % % % see also ACOVF ACORF AR2RC RC2AR DURLEV AC2POLY, POLY2RC, RC2POLY, RC2AC, AC2RC, POLY2AC % % Version 2.91 % Copyright (C) 19962001 by Alois Schloegl <a.schloegl@...>  % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % Version 2 of the License, or (at your option) any later version. +% $Id$ +% Copyright (C) 19982002,2008 by Alois Schloegl <a.schloegl@...> % % This library 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 % Library General Public License for more details. +% 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. % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. if all(size(a))>1, fprintf(2,'Error poly2rc: "a" must be a vector\n'); Modified: trunk/octaveforge/extra/tsa/inst/rc2ac.m ===================================================================  trunk/octaveforge/extra/tsa/inst/rc2ac.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/rc2ac.m 20080605 08:12:04 UTC (rev 5090) @@ 5,21 +5,21 @@ % see also ACOVF ACORF AR2RC RC2AR DURLEV AC2POLY, POLY2RC, RC2POLY, RC2AC, AC2RC, POLY2AC % % Version 2.90 last revision 10.04.2002 % Copyright (C) 19962002 by Alois Schloegl <a.schloegl@...>  % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % Version 2 of the License, or (at your option) any later version. +% $Id$ +% Copyright (C) 19982002,2008 by Alois Schloegl <a.schloegl@...> % % This library 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 % Library General Public License for more details. +% 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. % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. fprintf(2,'ERROR: RC2AC does not work yet. Sorry\n'); Modified: trunk/octaveforge/extra/tsa/inst/rc2ar.m ===================================================================  trunk/octaveforge/extra/tsa/inst/rc2ar.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/rc2ar.m 20080605 08:12:04 UTC (rev 5090) @@ 27,22 +27,22 @@ % W.S. Wei "Time Series Analysis" Addison Wesley, 1990. % $Id$ % Copyright (c) 19962002,2007 by Alois Schloegl <a.schloegl@...> +% Copyright (c) 19962002,2007,2008 by Alois Schloegl <a.schloegl@...> % This function is part of the TSAtoolbox % http://www.dpmi.tugraz.ac.at/~schloegl/matlab/tsa/  % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % Version 2 of the License, or (at your option) any later version. % % This library 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 % Library General Public License for more details. +% 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. % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. % Inititialization Modified: trunk/octaveforge/extra/tsa/inst/rc2poly.m ===================================================================  trunk/octaveforge/extra/tsa/inst/rc2poly.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/rc2poly.m 20080605 08:12:04 UTC (rev 5090) @@ 5,22 +5,23 @@ % see also ACOVF ACORF AR2RC RC2AR DURLEV AC2POLY, POLY2RC, RC2POLY, RC2AC, AC2RC, POLY2AC % % Version 2.90 last revision 10.04.2002 % Copyright (C) 19962002 by Alois Schloegl <a.schloegl@...>  % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % Version 2 of the License, or (at your option) any later version. +% $Id$ +% Copyright (C) 19982002,2008 by Alois Schloegl <a.schloegl@...> % % This library 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 % Library General Public License for more details. +% 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. % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. + if nargout>1 & nargin<2 fprintf('Zerolag autocorrelation, R0 not specified\n') return; Modified: trunk/octaveforge/extra/tsa/inst/rmle.m ===================================================================  trunk/octaveforge/extra/tsa/inst/rmle.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/rmle.m 20080605 08:12:04 UTC (rev 5090) @@ 15,24 +15,24 @@ % Prentice Hall, p. 232233, 1988. % % Version 0.1 % 16 Ago 2004 +% $Id$ % Copyright (C) 2004 by Jose Luis Gutierrez <jlg@...> % Grupo GENESIS  UTN  Argentina  % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % Version 2 of the License, or (at your option) any later version. % % This library 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 % Library General Public License for more details. +% 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. % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. + x=arg1*1e6; p=arg2; Modified: trunk/octaveforge/extra/tsa/inst/sbispec.m ===================================================================  trunk/octaveforge/extra/tsa/inst/sbispec.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/sbispec.m 20080605 08:12:04 UTC (rev 5090) @@ 1,22 +1,21 @@ function sbispec(BISPEC) % SBISPEC show BISPECTRUM % Version 0.23 % last revision 21.03.1998 % Copyright (C) 1997, 1998 by Alois Schloegl <a.schloegl@...>  % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % Version 2 of the License, or (at your option) any later version. +% $Id$ +% Copyright (C) 1997, 1998, 2008 by Alois Schloegl <a.schloegl@...> % % This library 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 % Library General Public License for more details. +% 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. % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. [s1,s2]=size(BISPEC); Modified: trunk/octaveforge/extra/tsa/inst/selmo.m ===================================================================  trunk/octaveforge/extra/tsa/inst/selmo.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/selmo.m 20080605 08:12:04 UTC (rev 5090) @@ 37,25 +37,22 @@ % G. Haring "\xDCber die Wahl der optimalen Modellordnung bei der Darstellung von station\xE4ren Zeitreihen mittels Autoregressivmodell als Basis der Analyse von EEG  Biosignalen mit Hilfe eines Digitalrechners", Habilitationschrift  Technische Universit\xE4t Graz, Austria, 1975. % (1)"About selecting the optimal model at the representation of stationary time series by means of an autoregressive model as basis of the analysis of EEG  biosignals by means of a digital computer)" % % % (1) engl. translation of the titel by A. Schloegl % Version 2.99b % last revision 01.10.2002 % Copyright (C) 19972002 by Alois Schloegl <a.schloegl@...>  % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % Version 2 of the License, or (at your option) any later version. +% $Id$ +% Copyright (C) 19972002,2008 by Alois Schloegl <a.schloegl@...> % % This library 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 % Library General Public License for more details. +% 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. % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. [lr,lc]=size(e); if (lr>1) & (lc>1), Modified: trunk/octaveforge/extra/tsa/inst/selmo2.m ===================================================================  trunk/octaveforge/extra/tsa/inst/selmo2.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/selmo2.m 20080605 08:12:04 UTC (rev 5090) @@ 17,19 +17,19 @@ % http://hci.tugraz.at/schloegl/matlab/tsa/ % http://octave.sourceforge.net/ % http://biosig.sourceforge.net/  % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % Version 2 of the License, or (at your option) any later version. % % This library 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 % Library General Public License for more details. +% 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. % % You should have received a copy of the GNU General Public License % along with this file. If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. [M,N]=size(y); Modified: trunk/octaveforge/extra/tsa/inst/sinvest1.m ===================================================================  trunk/octaveforge/extra/tsa/inst/sinvest1.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/sinvest1.m 20080605 08:12:04 UTC (rev 5090) @@ 1,21 +1,21 @@ %SINVEST1 shows the parameters of a time series calculated by INVEST1 % only called by INVEST1 % Version 2.99, 10 May 2002 % Copyright (C) 19982002 by Alois Schloegl <a.schloegl@...>  % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % Version 2 of the License, or (at your option) any later version. +% $Id$ +% Copyright (C) 19982002,2008 by Alois Schloegl <a.schloegl@...> % % This library 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 % Library General Public License for more details. +% 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. % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% 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/>;. Fs=flag_implicit_samplerate; M=size(AutoCorr,2); Modified: trunk/octaveforge/extra/tsa/inst/tsademo.m ===================================================================  trunk/octaveforge/extra/tsa/inst/tsademo.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/tsademo.m 20080605 08:12:04 UTC (rev 5090) @@ 1,20 +1,20 @@ % TSADEMO demonstrates INVEST1 on EEG data % Version 2.99 23.05.2002 % Copyright (C) 19982002 by Alois Schloegl <a.schloegl@...>  % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % Version 2 of the License, or (at your option) any later version. +% $Id$ +% Copyright (C) 19982002,2008 by Alois Schloegl <a.schloegl@...> +% +% 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 library 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 % Library General Public License for more details. +% 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 Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;. +% You should have received a copy of the GNU General Public License +% along with this program. If not, see <http://www.gnu.org/licenses/>;. if exist('OCTAVE_VERSION')>5; Modified: trunk/octaveforge/extra/tsa/inst/ucp.m ===================================================================  trunk/octaveforge/extra/tsa/inst/ucp.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/ucp.m 20080605 08:12:04 UTC (rev 5090) @@ 12,23 +12,21 @@ % F. Gausch "Systemtechnik", Textbook, University of Technology Graz, 1993. % This library is free software; you can redistribute it and/or % modify it under the terms of the GNU Library General Public % License as published by the Free Software Foundation; either % Version 2 of the License, or (at your option) any later version. +% $Id$ +% Copyright (C) 19961999,2008 by Alois Schloegl <a.schloegl@...> % % This library 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 % Library General Public License for more details. +% 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. % % You should have received a copy of the GNU Library General Public % License along with this library; If not, see <http://www.gnu.org/licenses/>;.  % Version 2.62 % 07.04.1999 % Copyright (C) 19961999 by Alois Schloegl <a.schloegl@...> +% 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/>;. [lr,lc] = size(c); Modified: trunk/octaveforge/extra/tsa/inst/y2res.m ===================================================================  trunk/octaveforge/extra/tsa/inst/y2res.m 20080605 07:05:59 UTC (rev 5089) +++ trunk/octaveforge/extra/tsa/inst/y2res.m 20080605 08:12:04 UTC (rev 5090) @@ 19,25 +19,25 @@ % % $Id$ % Copyright (C) 19962005 by Alois Schloegl <a.schloegl@...> +% Copyright (C) 19962005,2008 by Alois Schloegl <a.schloegl@...> % This is part of the TSAtoolbox % http://octave.sourceforge.net/ % http://www.dpmi.tugraz.at/~schloegl/matlab/tsa/ +% +% 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/>;. % 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 2 % 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/>;.  [R.SUM, R.N, R.SSQ] = sumskipnan(Y,1); %R.S3P = sumskipnan(Y.^3,1); R.S4P = sumskipnan(Y.^4,1); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. 
From: <highegg@us...>  20080605 07:06:05

Revision: 5089 http://octave.svn.sourceforge.net/octave/?rev=5089&view=rev Author: highegg Date: 20080605 00:05:59 0700 (Thu, 05 Jun 2008) Log Message:  benchmark: initial commit Added Paths:  trunk/octaveforge/main/benchmark/ trunk/octaveforge/main/benchmark/COPYING trunk/octaveforge/main/benchmark/DESCRIPTION trunk/octaveforge/main/benchmark/INDEX trunk/octaveforge/main/benchmark/README trunk/octaveforge/main/benchmark/inst/ trunk/octaveforge/main/benchmark/inst/benchmark_dtmm.m trunk/octaveforge/main/benchmark/inst/benchmark_stmm.m trunk/octaveforge/main/benchmark/inst/benchutil_default_arg.m trunk/octaveforge/main/benchmark/inst/benchutil_initialize.m trunk/octaveforge/main/benchmark/inst/benchutil_is_octave.m trunk/octaveforge/main/benchmark/inst/benchutil_parse_desc.m trunk/octaveforge/main/benchmark/inst/benchutil_set_result.m trunk/octaveforge/main/benchmark/inst/benchutil_verbose.m Added: trunk/octaveforge/main/benchmark/COPYING ===================================================================  trunk/octaveforge/main/benchmark/COPYING (rev 0) +++ trunk/octaveforge/main/benchmark/COPYING 20080605 07:05:59 UTC (rev 5089) @@ 0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 021111307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +softwareto make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machinereadable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machinereadable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royaltyfree redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) 19yy <name of author> + + 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 2 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, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 021111307 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) 19yy name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouseclicks or menu itemswhatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. Added: trunk/octaveforge/main/benchmark/DESCRIPTION ===================================================================  trunk/octaveforge/main/benchmark/DESCRIPTION (rev 0) +++ trunk/octaveforge/main/benchmark/DESCRIPTION 20080605 07:05:59 UTC (rev 5089) @@ 0,0 +1,10 @@ +Name: benchmark +Version: 1.0.0 +Date: 20080605 +Author: Octave community +Title: Benchmarks for Octave +Maintainer: Jaroslav Hajek (highegg@...) +Description: The package contains code used to benchmark speed of Octave. +License: GPL v2 +Depends: octave (>= 2.9.7) + Added: trunk/octaveforge/main/benchmark/INDEX ===================================================================  trunk/octaveforge/main/benchmark/INDEX (rev 0) +++ trunk/octaveforge/main/benchmark/INDEX 20080605 07:05:59 UTC (rev 5089) @@ 0,0 +1,11 @@ +benchmark >> Benchmark +Utility + benchutil_default_arg.m + benchutil_initialize.m + benchutil_is_octave.m + benchutil_parse_desc.m + benchutil_set_result.m + benchutil_verbose.m +Benchmarks + benchmark_dtmm.m + benchmark_stmm.m Added: trunk/octaveforge/main/benchmark/README ===================================================================  trunk/octaveforge/main/benchmark/README (rev 0) +++ trunk/octaveforge/main/benchmark/README 20080605 07:05:59 UTC (rev 5089) @@ 0,0 +1,52 @@ +benchmark + +This package contains codes used to measure Octave's speed, resource usage etc. +It can be used to benchmark Octave running on different platforms, compiled +with different configurations, of different versions, or even Octave vs. Matlab +(if applicable). + +Each benchmark should have the form + +benchmark_my_benchmark.m: + +% <Copyright> + +% function benchmark_my_benchmark (arg1, arg2) +% description: +% <description of the benchmark> +% +% arguments: +% arg1 = <description of arg1> +% arg2 = <description of arg2> +% +% results: +% result1 = <description of result1> +% result2 = <description of result2> + +function results = bechmark_my_benchmark (arg1, arg2) + +benchutil_default_arg ('arg1', <arg1 default value>) +benchutil_default_arg ('arg2', <arg2 default value>) + +% the argument is mandatory and MUST be mfilename! +benchutil_initialize (mfilename) + +tic; +<code for result1> +result1 = toc; +benchutil_set_result ('result1') + +tic; +<code for result2> +result1 = toc; +benchutil_set_result ('result2') + +% yes, that's all! + + +the benchmark can then be run +benchmark_my_benchmark +or +benchmark_my_benchmark (100, 100) + +for more info, see existing benchmarks Added: trunk/octaveforge/main/benchmark/inst/benchmark_dtmm.m ===================================================================  trunk/octaveforge/main/benchmark/inst/benchmark_dtmm.m (rev 0) +++ trunk/octaveforge/main/benchmark/inst/benchmark_dtmm.m 20080605 07:05:59 UTC (rev 5089) @@ 0,0 +1,82 @@ +% Copyright (C) 2008 Jaroslav Hajek <highegg@...> +% +% This file is part of OctaveForge. +% +% OctaveForge 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 2 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 software; see the file COPYING. If not, see +% <http://www.gnu.org/licenses/>;. +% + +% function benchmark_dtmm (m, n, nvec) +% description: +% Dense transposed matrixmatrix and matrixvector multiplication benchmark. +% This is to test the "compound operators" feature introduced in Octave. +% +% arguments: +% m = row dimension of matrices +% n = col dimension of matrices +% nvec = number of vector op repeats +% +% results: +% time_tmm = Time for A'*B (A,B mbyn matrices) +% time_smm = Time for A'*A +% time_mtm = Time for A*B' (A,B nbym matrices) +% time_msm = Time for A*A' +% time_tmv = Time for A'*v nvectimes (A mbyn matrix) +% time_mtv = Time for v*A' nvectimes (A mbyn matrix) +% + +function results = benchmark_dtmm (m, n, nvec) + + benchutil_default_arg ('m', 40192); + benchutil_default_arg ('n', 150); + benchutil_default_arg ('nvec', 100); + + benchutil_initialize (mfilename) + + A = rand (m, n); + B = rand (m, n); + + tic; C = A'*B; time_tmm = toc; + benchutil_set_result ('time_tmm') + + tic; C = A'*A; time_smm = toc; + benchutil_set_result ('time_smm') + + A = A'; + B = B'; + + tic; C = A*B'; time_mtm = toc; + benchutil_set_result ('time_mtm') + + tic; C = A*A'; time_msm = toc; + benchutil_set_result ('time_msm') + + A = A'; + + v = rand (m, 1); + tic; + for i=1:nvec + c = A'*v; + end + time_tmv = toc; + benchutil_set_result ('time_tmv') + + v = rand (1, n); + tic; + for i=1:nvec + c = v*A'; + end + time_mtv = toc; + benchutil_set_result ('time_mtv') + Added: trunk/octaveforge/main/benchmark/inst/benchmark_stmm.m ===================================================================  trunk/octaveforge/main/benchmark/inst/benchmark_stmm.m (rev 0) +++ trunk/octaveforge/main/benchmark/inst/benchmark_stmm.m 20080605 07:05:59 UTC (rev 5089) @@ 0,0 +1,78 @@ +% Copyright (C) 2008 Jaroslav Hajek <highegg@...> +% +% This file is part of OctaveForge. +% +% OctaveForge 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 2 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 software; see the file COPYING. If not, see +% <http://www.gnu.org/licenses/>;. +% + +% function benchmark_stmm (n, nvec) +% description: +% Sparse transposed matrixvector multiplication benchmark. +% This is to test the "compound operators" feature introduced in Octave. +% +% arguments: +% n = dimension of matrix +% nvec = number of vector op repeats +% +% results: +% time_tmm = Time for A'*B (B n^2bynvec matrix) +% time_tmv = Time for A'*v nvectimes (v vector) +% time_mtm = Time for B*A' (B nvecbyn^2 matrix) +% time_mtv = Time for v*A' nvectimes (v vector) +% + +function results = benchmark_stmm (n, nvec) + + benchutil_default_arg ('n', 300); + benchutil_default_arg ('nvec', 100); + + benchutil_initialize (mfilename) + + disp ('constructing sparse matrix') + n = 300; % size of the grid + m = n^2; % number of points + X = (n1)*rand (m, 1); Y = (n1)*rand (m, 1); + IX = ceil (X); JY = ceil (Y); + + A = sparse(m, n^2); + A = A + sparse (1:m, sub2ind ([n, n], IX , JY ), (IX+1X).*(JY+1Y), m, n^2); + A = A + sparse (1:m, sub2ind ([n, n], IX+1, JY ), (X  IX).*(JY+1Y), m, n^2); + A = A + sparse (1:m, sub2ind ([n, n], IX , JY+1), (IX+1X).*(Y  JY), m, n^2); + A = A + sparse (1:m, sub2ind ([n, n], IX+1, JY+1), (X  IX).*(Y  JY), m, n^2); + + v = ones (m, nvec); + tic; u = A'*v; time_tmm = toc; + benchutil_set_result ('time_tmm') + + v = ones (m, 1); + tic; + for i=1:nvec + u = A'*v; + end + time_tmv = toc; + benchutil_set_result ('time_tmv') + + v = ones (nvec, m); + tic; u = v*A'; time_mtm = toc; + benchutil_set_result ('time_mtm') + + v = ones (1, m); + tic; + for i=1:nvec + u = v*A'; + end + time_mtv = toc; + benchutil_set_result ('time_mtv') + Added: trunk/octaveforge/main/benchmark/inst/benchutil_default_arg.m ===================================================================  trunk/octaveforge/main/benchmark/inst/benchutil_default_arg.m (rev 0) +++ trunk/octaveforge/main/benchmark/inst/benchutil_default_arg.m 20080605 07:05:59 UTC (rev 5089) @@ 0,0 +1,28 @@ +% Copyright (C) 2008 Jaroslav Hajek <highegg@...> +% +% This file is part of OctaveForge. +% +% OctaveForge 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 2 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 software; see the file COPYING. If not, see +% <http://www.gnu.org/licenses/>;. +% + +% benchmark_default_arg (name, value) +% set argument to a default value. This function is provided for +% compatibility with Matlab, which misses Octave's default arguments +% feature. +% +function benchutil_default_arg (name, value) + if (~ evalin ('caller', sprintf ('exist (''%s'', ''var'')', name))) + assignin ('caller', name, value); + end Added: trunk/octaveforge/main/benchmark/inst/benchutil_initialize.m ===================================================================  trunk/octaveforge/main/benchmark/inst/benchutil_initialize.m (rev 0) +++ trunk/octaveforge/main/benchmark/inst/benchutil_initialize.m 20080605 07:05:59 UTC (rev 5089) @@ 0,0 +1,44 @@ +% Copyright (C) 2008 Jaroslav Hajek <highegg@...> +% +% This file is part of OctaveForge. +% +% OctaveForge 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 2 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 software; see the file COPYING. If not, see +% <http://www.gnu.org/licenses/>;. +% + +% function benchutil_initialize (mfname) +% initializes a benchmark. The argument passed must be the filename of the +% function. +% +function benchutil_initialize (mfname) + [bench_desc, arg_desc, result_desc] = ... + benchutil_parse_desc ([mfname, '.m']); + assignin ('caller', 'result_desc', result_desc); + if (benchutil_verbose) + fprintf (1, 'Running benchmark: %s\n', mfname); + fwrite (1, bench_desc); + fprintf (1, '\n'); + argns = fieldnames (arg_desc); + for argn = argns' + argn = argn{1}; + argv = evalin ('caller', argn); + fprintf (1, '%s (%s) = %g\n', arg_desc.(argn), argn, argv); + end + if (benchutil_is_octave) + fflush (1); + end + end + + + Added: trunk/octaveforge/main/benchmark/inst/benchutil_is_octave.m ===================================================================  trunk/octaveforge/main/benchmark/inst/benchutil_is_octave.m (rev 0) +++ trunk/octaveforge/main/benchmark/inst/benchutil_is_octave.m 20080605 07:05:59 UTC (rev 5089) @@ 0,0 +1,30 @@ +% Copyright (C) 2008 Jaroslav Hajek <highegg@...> +% +% This file is part of OctaveForge. +% +% OctaveForge 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 2 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 software; see the file COPYING. If not, see +% <http://www.gnu.org/licenses/>;. +% + +% function benchutil_is_octave () +% returns true if this is Octave. If not, we're probably run on Matlab. +% + +function answer = benchutil_is_octave () + persistent isoctave; + if (isempty (isoctave)) + isoctave = ~ isempty (ver ('Octave')); + end + answer = isoctave; + Added: trunk/octaveforge/main/benchmark/inst/benchutil_parse_desc.m ===================================================================  trunk/octaveforge/main/benchmark/inst/benchutil_parse_desc.m (rev 0) +++ trunk/octaveforge/main/benchmark/inst/benchutil_parse_desc.m 20080605 07:05:59 UTC (rev 5089) @@ 0,0 +1,69 @@ +% Copyright (C) 2008 Jaroslav Hajek <highegg@...> +% +% This file is part of OctaveForge. +% +% OctaveForge 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 2 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 software; see the file COPYING. If not, see +% <http://www.gnu.org/licenses/>;. +% + +% function [bench_desc, arg_desc, result_desc] = benchutil_parse_desc (mpath) +% parse the inline comment description from a benchmark +% + +function [bench_desc, arg_desc, result_desc] = benchutil_parse_desc (mpath) + fid = fopen (mpath, 'rt'); + + line = ''; + iseof = feof (fid); + while (~ (strncmp (line, '% description:', 14)  iseof)) + line = fgets (fid); + iseof = feof (fid); + end + + bench_desc = ''; + line = fgets (fid); + iseof = feof (fid); + while (~ (strncmp (line, '% arguments:', 12)  feof (fid))) + %TODO fix + bench_desc = [bench_desc, line(3:end)]; + line = fgets (fid); + iseof = feof (fid); + end + + line = fgetl (fid); + iseof = feof (fid); + while (~ (strncmp (line, '% results:', 10)  feof (fid))) + i = strfind (line, ' = '); + if (~ isempty (i)) + name = line (3:i(1)1); + arg_desc.(name) = line (i(1)+3:end); + end + line = fgetl (fid); + iseof = feof (fid); + end + + line = fgetl (fid); + iseof = feof (fid); + while (strncmp (line, '%', 1) && ~ feof (fid)) + i = strfind (line, ' = '); + if (~ isempty (i)) + name = line (3:i(1)1); + result_desc.(name) = line (i(1)+3:end); + end + line = fgetl (fid); + iseof = feof (fid); + end + + fclose (fid); + Added: trunk/octaveforge/main/benchmark/inst/benchutil_set_result.m ===================================================================  trunk/octaveforge/main/benchmark/inst/benchutil_set_result.m (rev 0) +++ trunk/octaveforge/main/benchmark/inst/benchutil_set_result.m 20080605 07:05:59 UTC (rev 5089) @@ 0,0 +1,32 @@ +% Copyright (C) 2008 Jaroslav Hajek <highegg@...> +% +% This file is part of OctaveForge. +% +% OctaveForge 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 2 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 software; see the file COPYING. If not, see +% <http://www.gnu.org/licenses/>;. +% + +function benchutil_set_result (name) + if (~ benchutil_verbose  evalin ('caller', 'nargout') > 0) + evalin ('caller', sprintf ('results.%s = %s;', name, name)); + end + if (benchutil_verbose) + value_desc = evalin ('caller', sprintf ('result_desc.%s', name)); + value = evalin ('caller', name); + fprintf (1, '%s: %g\n', value_desc, value); + if (benchutil_is_octave) + fflush (1); + end + end + Added: trunk/octaveforge/main/benchmark/inst/benchutil_verbose.m ===================================================================  trunk/octaveforge/main/benchmark/inst/benchutil_verbose.m (rev 0) +++ trunk/octaveforge/main/benchmark/inst/benchutil_verbose.m 20080605 07:05:59 UTC (rev 5089) @@ 0,0 +1,33 @@ +% Copyright (C) 2008 Jaroslav Hajek <highegg@...> +% +% This file is part of OctaveForge. +% +% OctaveForge 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 2 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 software; see the file COPYING. If not, see +% <http://www.gnu.org/licenses/>;. +% + +% function OLD_FLAG = benchutil_verbose (NEW_FLAG) +% sets or queries the benchmark verbosity flag +% +function flag = benchutil_verbose (setflag) + persistent verbose; + if (isempty (verbose)) + verbose = true; + end + if (nargin == 0  nargout == 1) + flag = verbose; + end + if (nargin == 1) + verbose = setflag; + end This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. 