# HG changeset patch # User jwe # Date 837120036 0 # Node ID 204cc7db6f4abf538d2d29a53e578fc60a88569f # Parent 2b5788792cad9b9643d642c66b36b9fb1e5cf5ae [project @ 1996-07-11 21:20:36 by jwe] diff -r 2b5788792cad -r 204cc7db6f4a scripts/audio/lin2mu.m --- a/scripts/audio/lin2mu.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/audio/lin2mu.m Thu Jul 11 21:20:36 1996 +0000 @@ -22,11 +22,12 @@ ## x is a vector of an 8- or 16-bit linearly encoded audio sample, ## This is transformed into a mu-law encoded vector. +## Author: AW +## Created: 17 October 1994 +## Adapted-By: jwe + function y = lin2mu (x) - ## Written by AW (Andreas.Weingessel@ci.tuwien.ac.at) on Oct 17, 1994 - ## Copyright Department of Probability Theory and Statistics TU Wien - if (nargin != 1) usage ("y = lin2mu (x)"); endif diff -r 2b5788792cad -r 204cc7db6f4a scripts/audio/loadaudio.m --- a/scripts/audio/loadaudio.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/audio/loadaudio.m Thu Jul 11 21:20:36 1996 +0000 @@ -32,11 +32,12 @@ ## mu-law encoded files are transformed to 8 and 16-bit linear ## format, respectively. +## Author: AW +## Created: 10 April 1994 +## Adapted-By: jwe + function X = loadaudio (name, ext, bit) - ## Written by AW (Andreas.Weingessel@ci.tuwien.ac.at) on Apr 10, 1994 - ## Last modified by AW on Oct 29, 1994 - if (nargin == 0 || nargin > 3) usage ("loadaudio (name [, ext [, bit]])"); endif diff -r 2b5788792cad -r 204cc7db6f4a scripts/audio/mu2lin.m --- a/scripts/audio/mu2lin.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/audio/mu2lin.m Thu Jul 11 21:20:36 1996 +0000 @@ -24,12 +24,12 @@ ## The optional argument bit specifies whether the input data is ## 8 bit (default) or 16 bit. +## Author: AW +## Created: 18 October 1994 +## Adapted-By: jwe + function y = mu2lin (x, bit) - ## Written by AW (Andreas.Weingessel@ci.tuwien.ac.at) on Oct 18, 1994 - ## Updated by AW (Andreas.Weingessel@ci.tuwien.ac.at) on Oct 27, 1994 - ## Copyright Department of Probability Theory and Statistics TU Wien - if (nargin == 1) bit = 8; elseif (nargin == 2) diff -r 2b5788792cad -r 204cc7db6f4a scripts/audio/playaudio.m --- a/scripts/audio/playaudio.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/audio/playaudio.m Thu Jul 11 21:20:36 1996 +0000 @@ -31,12 +31,12 @@ ## ## `playaudio (X)' plays the audio data contained in the vector X. +## Author: AW +## Created: 11 April 1994 +## Adapted-By: jwe + function playaudio (name, ext) - ## Written by AW (Andreas.Weingessel@ci.tuwien.ac.at) on Apr 11, 1994 - ## Last modified by AW on Nov 7, 1994 - ## Copyright Dept of Probability Theory and Statistics TU Wien - file = octave_tmp_file_name (); usage_msg = "playaudio (name [, ext]) or playaudio (X)"; diff -r 2b5788792cad -r 204cc7db6f4a scripts/audio/record.m --- a/scripts/audio/record.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/audio/record.m Thu Jul 11 21:20:36 1996 +0000 @@ -24,11 +24,11 @@ ## The program waits for you to hit the ENTER key, then the recording ## starts immediatly. -function X = record (sec, sampling_rate) +## Author: AW +## Created: 19 September 1994 +## Adapted-By: jwe - ## Written by AW (Andreas.Weingessel@ci.tuwien.ac.at) on Sep 19, 1994 - ## Last modified by AW on Oct 5, 1994 - ## Copyright Dept of Probability Theory and Statistics TU Wien +function X = record (sec, sampling_rate) if (nargin == 1) sampling_rate = 8000; diff -r 2b5788792cad -r 204cc7db6f4a scripts/audio/saveaudio.m --- a/scripts/audio/saveaudio.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/audio/saveaudio.m Thu Jul 11 21:20:36 1996 +0000 @@ -29,12 +29,12 @@ ## If the data is saved linearly, the bit argument decides whether an ## 8-bit (default) or a 16-bit format is used. +## Author: AW +## Created: 5 September 1994 +## Adapted-By: jwe + function saveaudio (name, X, ext, bit) - ## Written by AW (Andreas.Weingessel@ci.tuwien.ac.at) on Sep 5, 1994 - ## Last modified by AW on Oct 29, 1994 - ## Copyright Dept of Probability Theory and Statistics TU Wien - if (nargin < 2 || nargin > 4) usage ("saveaudio (X, name [, ext [, bit]])"); endif diff -r 2b5788792cad -r 204cc7db6f4a scripts/audio/setaudio.m --- a/scripts/audio/setaudio.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/audio/setaudio.m Thu Jul 11 21:20:36 1996 +0000 @@ -21,12 +21,12 @@ ## ## executes the shell command `mixer [w_type [, value]]' +## Author: AW +## Created: 5 October 1994 +## Adapted-By: jwe + function setaudio (w_type, value) - ## Written by AW (Andreas.Weingessel@ci.tuwien.ac.at) on Oct 5, 1994 - ## Updated by AW on Nov 3, 1994 - ## Copyright Department of Probability Theory and Statistics TU Wien - if (nargin == 0) system ("mixer"); elseif (nargin == 1) diff -r 2b5788792cad -r 204cc7db6f4a scripts/control/abcddim.m --- a/scripts/control/abcddim.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/control/abcddim.m Thu Jul 11 21:20:36 1996 +0000 @@ -28,9 +28,11 @@ ## ## Returns n = m = p = -1 if the system is not compatible. -function [n, m, p] = abcddim (a, b, c, d) +## Author: A. S. Hodel +## Created: August 1993 +## Adapted-By: jwe - ## Written by A. S. Hodel (scotte@eng.auburn.edu) August 1993. +function [n, m, p] = abcddim (a, b, c, d) if (nargin != 4) error ("usage: abcddim (a, b, c, d)"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/control/are.m --- a/scripts/control/are.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/control/are.m Thu Jul 11 21:20:36 1996 +0000 @@ -33,9 +33,11 @@ ## ## See also: balance -function x = are (a, b, c, opt) +## Author: A. S. Hodel +## Created: August 1993 +## Adapted-By: jwe - ## Written by A. S. Hodel (scotte@eng.auburn.edu) August 1993. +function x = are (a, b, c, opt) if (nargin == 3 || nargin == 4) if (nargin == 4) diff -r 2b5788792cad -r 204cc7db6f4a scripts/control/c2d.m --- a/scripts/control/c2d.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/control/c2d.m Thu Jul 11 21:20:36 1996 +0000 @@ -29,10 +29,11 @@ ## ## assuming a zero-order hold on the input and sample time T. -function [Ad, Bd] = c2d (Ac, Bc, T) +## Author: R.B. Tenison +## Created: October 1993 +## Adapted-By: jwe - ## Written by R.B. Tenison (btenison@eng.auburn.edu) - ## October 1993 +function [Ad, Bd] = c2d (Ac, Bc, T) ## check args if (nargin != 3) diff -r 2b5788792cad -r 204cc7db6f4a scripts/control/dare.m --- a/scripts/control/dare.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/control/dare.m Thu Jul 11 21:20:36 1996 +0000 @@ -44,9 +44,11 @@ ## ## See also: balance, are -function x = dare (a, b, c, r, opt) +## Author: A. S. Hodel +## Created: August 1993 +## Adapted-By: jwe - ## Written by A. S. Hodel (scotte@eng.auburn.edu) August 1993. +function x = dare (a, b, c, r, opt) if (nargin == 4 || nargin == 5) if (nargin == 5) diff -r 2b5788792cad -r 204cc7db6f4a scripts/control/dgram.m --- a/scripts/control/dgram.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/control/dgram.m Thu Jul 11 21:20:36 1996 +0000 @@ -24,10 +24,12 @@ ## dgram (A, B) returns the discrete controllability gramian. ## dgram (A', C') returns the observability gramian. -function gramian = dgram (A, B) +## Author: R. Bruce Tenison +## Created: October 1993 +## Adapted-By: jwe - ## Written by R. Bruce Tenison (btenison@eng.auburn.edu) - ## October 1993 + +function gramian = dgram (A, B) [U, Sig, V] = svd (B); diff -r 2b5788792cad -r 204cc7db6f4a scripts/control/dlqe.m --- a/scripts/control/dlqe.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/control/dlqe.m Thu Jul 11 21:20:36 1996 +0000 @@ -40,11 +40,12 @@ ## p = the estimate error covariance after the measurement update ## e = closed loop poles of (A - A L C) -function [l, m, p, e] = dlqe (a, g, c, sigw, sigv, zz) +## Author: A. S. Hodel +## R. Bruce Tenison +## Created: August 1993 +## Adapted-By: jwe - ## Written by A. S. Hodel (scotte@eng.auburn.edu) August, 1993. - ## Modified for discrete time by R. Bruce Tenison (btenison@eng.auburn.edu) - ## October, 1993 +function [l, m, p, e] = dlqe (a, g, c, sigw, sigv, zz) if (nargin != 5 && nargin != 6) error ("dlqe: invalid number of arguments"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/control/dlqr.m --- a/scripts/control/dlqr.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/control/dlqr.m Thu Jul 11 21:20:36 1996 +0000 @@ -37,11 +37,12 @@ ## p = solution of algebraic Riccati equation ## e = closed loop poles of (A - B K) -function [k, p, e] = dlqr (a, b, q, r, zz) +## Author: A. S. Hodel +## R. B. Tenison +## Created: August 1993 +## Adapted-By: jwe - ## Written by A. S. Hodel (scotte@eng.auburn.edu) August 1993. - ## Converted to discrete time by R. B. Tenison - ## (btenison@eng.auburn.edu) October 1993 +function [k, p, e] = dlqr (a, b, q, r, zz) if (nargin != 4 && nargin != 5) error ("dlqr: invalid number of arguments"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/control/dlyap.m --- a/scripts/control/dlyap.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/control/dlyap.m Thu Jul 11 21:20:36 1996 +0000 @@ -32,9 +32,11 @@ ## whichever is appropriate. Uses Schur decomposition as in Kitagawa ## (1977). -function x = dlyap (a, b) +## Author: A. S. Hodel +## Created: August 1993 +## Adapted-By: jwe - ## Written by A. S. Hodel (scotte@eng.auburn.edu) August 1993. +function x = dlyap (a, b) if ((n = is_square (a)) == 0) warning ("dlyap: a must be square"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/control/is_controllable.m --- a/scripts/control/is_controllable.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/control/is_controllable.m Thu Jul 11 21:20:36 1996 +0000 @@ -35,9 +35,11 @@ ## ## tol is a roundoff paramter, set to 2*eps if omitted. -function retval = is_controllable (a, b, tol) +## Author: A. S. Hodel +## Created: August 1993 +## Adapted-By: jwe - ## Written by A. S. Hodel (scotte@eng.auburn.edu) August, 1993. +function retval = is_controllable (a, b, tol) if (nargin == 2 || nargin == 3) diff -r 2b5788792cad -r 204cc7db6f4a scripts/control/is_observable.m --- a/scripts/control/is_observable.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/control/is_observable.m Thu Jul 11 21:20:36 1996 +0000 @@ -23,9 +23,11 @@ ## ## See also: size, rows, columns, length, is_matrix, is_scalar, is_vector. -function retval = is_observable (a,c,tol) +## Author: A. S. Hodel +## Created: August 1993 +## Adapted-By: jwe - ## Written by A. S. Hodel (scotte@eng.auburn.edu) August 1993. +function retval = is_observable (a,c,tol) if (nargin == 2) retval = is_controllable (a', c'); diff -r 2b5788792cad -r 204cc7db6f4a scripts/control/lqe.m --- a/scripts/control/lqe.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/control/lqe.m Thu Jul 11 21:20:36 1996 +0000 @@ -38,9 +38,11 @@ ## p = solution of algebraic Riccati equation ## e = closed loop poles of (A - K C) -function [k, p, e] = lqe (a, g, c, sigw, sigv, zz) +## Author: A. S. Hodel +## Created: August 1993 +## Adapted-By: jwe - ## Written by A. S. Hodel (scotte@eng.auburn.edu) August, 1993. +function [k, p, e] = lqe (a, g, c, sigw, sigv, zz) if (nargin != 5 && nargin != 6) error ("lqe: invalid number of arguments"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/control/lqr.m --- a/scripts/control/lqr.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/control/lqr.m Thu Jul 11 21:20:36 1996 +0000 @@ -37,9 +37,11 @@ ## p = solution of algebraic Riccati equation ## e = closed loop poles of (A - B K) -function [k, p, e] = lqr (a, b, q, r, zz) +## Author: A. S. Hodel +## Created: August 1993 +## Adapted-By: jwe - ## Written by A. S. Hodel (scotte@eng.auburn.edu) August 1993. +function [k, p, e] = lqr (a, b, q, r, zz) if (nargin != 4 && nargin != 5) error ("lqr: invalid number of arguments"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/control/lyap.m --- a/scripts/control/lyap.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/control/lyap.m Thu Jul 11 21:20:36 1996 +0000 @@ -41,10 +41,11 @@ ## ## Solves by using the Bartels-Stewart algorithm (1972). -function x = lyap (a, b, c) +## Author: A. S. Hodel +## Created: August 1993 +## Adapted-By: jwe - ## Written by A. S. Hodel (scotte@eng.auburn.edu) August 1993. - +function x = lyap (a, b, c) if (nargin != 3 && nargin != 2) usage ("lyap (a, b {,c})"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/control/tzero.m --- a/scripts/control/tzero.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/control/tzero.m Thu Jul 11 21:20:36 1996 +0000 @@ -25,9 +25,11 @@ ## ## Needs to incorporate mvzero algorithm to isolate finite zeros. -function zr = tzero (a, b, c, d, bal) +## Author: A. S. Hodel +## Created: August 1993 +## Adapted-By: jwe - ## Written by A. S. Hodel (scotte@eng.auburn.edu) August 1993. +function zr = tzero (a, b, c, d, bal) if (nargin == 4) bal = "B"; diff -r 2b5788792cad -r 204cc7db6f4a scripts/elfun/gcd.m --- a/scripts/elfun/gcd.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/elfun/gcd.m Thu Jul 11 21:20:36 1996 +0000 @@ -25,9 +25,11 @@ ## ## [g [, v]] = gcd (a1, ..., ak) is the same with a = [a1, ..., ak]. -function [g, v] = gcd (a, ...) +## Author: KH +## Created: 16 September 1994 +## Adapted-By: jwe -## Written by KH (Kurt.Hornik@ci.tuwien.ac.at) on Sep 16, 1994. +function [g, v] = gcd (a, ...) if (nargin > 1) va_start; diff -r 2b5788792cad -r 204cc7db6f4a scripts/elfun/lcm.m --- a/scripts/elfun/lcm.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/elfun/lcm.m Thu Jul 11 21:20:36 1996 +0000 @@ -23,11 +23,12 @@ ## integer vector a. ## lcm (a1, ..., ak) is the same as lcm([a1, ..., ak]). +## Author: KH +## Created: 16 September 1994 +## Adapted-By: jwe + function l = lcm (a, ...) -## Written by KH (Kurt.Hornik@ci.tuwien.ac.at) on Sep 16, 1994. - - if (nargin > 1) va_start; for k = 2:nargin; a = [a, (va_arg ())]; diff -r 2b5788792cad -r 204cc7db6f4a scripts/general/is_square.m --- a/scripts/general/is_square.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/general/is_square.m Thu Jul 11 21:20:36 1996 +0000 @@ -24,9 +24,11 @@ ## ## See also: size, rows, columns, length, is_matrix, is_scalar, is_vector -function retval = is_square (x) +## Author: A. S. Hodel +## Created: August 1993 +## Adapted-By: jwe - ## Written by A. S. Hodel (scotte@eng.auburn.edu) August 1993. +function retval = is_square (x) if (nargin == 1) [nr, nc] = size (x); diff -r 2b5788792cad -r 204cc7db6f4a scripts/general/is_symmetric.m --- a/scripts/general/is_symmetric.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/general/is_symmetric.m Thu Jul 11 21:20:36 1996 +0000 @@ -24,9 +24,11 @@ ## See also: size, rows, columns, length, is_matrix, is_scalar, ## is_square, is_vector -function retval = is_symmetric (x,tol) +## Author: A. S. Hodel +## Created: August 1993 +## Adapted-By: jwe - ## Written by A. S. Hodel (scotte@eng.auburn.edu) August 1993. +function retval = is_symmetric (x,tol) if (nargin == 1 || nargin == 2) if ((retval = is_square (x))) diff -r 2b5788792cad -r 204cc7db6f4a scripts/image/colormap.m --- a/scripts/image/colormap.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/image/colormap.m Thu Jul 11 21:20:36 1996 +0000 @@ -29,9 +29,11 @@ ## ## colormap with no arguments returns the current colormap. -function cmap = colormap (map) +## Author: Tony Richardson +## Created: July 1994 +## Adapted-By: jwe - ## Written by Tony Richardson (amr@mpl.ucsd.edu) July 1994. +function cmap = colormap (map) global CURRENT_COLOR_MAP diff -r 2b5788792cad -r 204cc7db6f4a scripts/image/gray.m --- a/scripts/image/gray.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/image/gray.m Thu Jul 11 21:20:36 1996 +0000 @@ -19,9 +19,11 @@ ## Colormap. -function map = gray (number) +## Author: Tony Richardson +## Created: July 1994 +## Adapted-By: jwe - ## Written by Tony Richardson (amr@mpl.ucsd.edu) July 1994. +function map = gray (number) if (nargin == 0) number = 64; diff -r 2b5788792cad -r 204cc7db6f4a scripts/image/gray2ind.m --- a/scripts/image/gray2ind.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/image/gray2ind.m Thu Jul 11 21:20:36 1996 +0000 @@ -19,9 +19,11 @@ ## Image format conversion -function [X, map] = gray2ind (I, n) +## Author: Tony Richardson +## Created: July 1994 +## Adapted-By: jwe - ## Written by Tony Richardson (amr@mpl.ucsd.edu) July 1994. +function [X, map] = gray2ind (I, n) if (nargin < 1 || nargin > 2) usage ("gray2ind (I, n)"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/image/image.m --- a/scripts/image/image.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/image/image.m Thu Jul 11 21:20:36 1996 +0000 @@ -27,9 +27,11 @@ ## ## SEE ALSO: imshow, imagesc, colormap. -function image (x, zoom) +## Author: Tony Richardson +## Created: July 1994 +## Adapted-By: jwe - ## Written by Tony Richardson (amr@mpl.ucsd.edu) July 1994. +function image (x, zoom) if (nargin == 0) ## Load Bobbie Jo Richardson (Born 3/16/94) diff -r 2b5788792cad -r 204cc7db6f4a scripts/image/imagesc.m --- a/scripts/image/imagesc.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/image/imagesc.m Thu Jul 11 21:20:36 1996 +0000 @@ -27,9 +27,11 @@ ## ## SEE ALSO: image, imshow -function x = imagesc (x, zoom) +## Author: Tony Richardson +## Created: July 1994 +## Adapted-By: jwe - ## Written by Tony Richardson (amr@mpl.ucsd.edu) July 1994. +function x = imagesc (x, zoom) if (nargin < 1 || nargin > 2) usage ("image (matrix, [zoom])"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/image/imshow.m --- a/scripts/image/imshow.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/image/imshow.m Thu Jul 11 21:20:36 1996 +0000 @@ -29,9 +29,11 @@ ## ## SEE ALSO: image, imagesc, colormap, gray2ind, rgb2ind. -function imshow (a1, a2, a3) +## Author: Tony Richardson +## Created: July 1994 +## Adapted-By: jwe - ## Written by Tony Richardson (amr@mpl.ucsd.edu) July 1994. +function imshow (a1, a2, a3) if (nargin < 0 || nargin > 3) usage ("imshow (args)"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/image/ind2gray.m --- a/scripts/image/ind2gray.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/image/ind2gray.m Thu Jul 11 21:20:36 1996 +0000 @@ -28,9 +28,11 @@ ## ## SEE ALSO: gray2ind, rgb2ntsc, image, colormap -function Y = ind2gray (X, map) +## Author: Tony Richardson +## Created: July 1994 +## Adapted-By: jwe - ## Written by Tony Richardson (amr@mpl.ucsd.edu) July 1994. +function Y = ind2gray (X, map) if (nargin < 1 || nargin > 2) usage ("ind2gray (X, map)"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/image/ind2rgb.m --- a/scripts/image/ind2rgb.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/image/ind2rgb.m Thu Jul 11 21:20:36 1996 +0000 @@ -25,9 +25,11 @@ ## ## SEE ALSO: rgb2ind, image, imshow, ind2gray, gray2ind. -function [R, G, B] = ind2rgb (X, map) +## Author: Tony Richardson +## Created: July 1994 +## Adapted-By: jwe - ## Written by Tony Richardson (amr@mpl.ucsd.edu) July 1994. +function [R, G, B] = ind2rgb (X, map) if (nargin < 1 || nargin > 2) usage ("ind2rgb (X, map)"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/image/loadimage.m --- a/scripts/image/loadimage.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/image/loadimage.m Thu Jul 11 21:20:36 1996 +0000 @@ -25,9 +25,11 @@ ## ## SEE ALSO: saveimage, load, save -function [X, map] = loadimage (filename) +## Author: Tony Richardson +## Created: July 1994 +## Adapted-By: jwe - ## Written by Tony Richardson (amr@mpl.ucsd.edu) July 1994. +function [X, map] = loadimage (filename) if (nargin != 1) usage ("loadimage (filename)"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/image/ntsc2rgb.m --- a/scripts/image/ntsc2rgb.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/image/ntsc2rgb.m Thu Jul 11 21:20:36 1996 +0000 @@ -19,9 +19,11 @@ ## Image format conversion. -function rgb = ntsc2rgb (yiq) +## Author: Tony Richardson +## Created: July 1994 +## Adapted-By: jwe - ## Written by Tony Richardson (amr@mpl.ucsd.edu) July 1994. +function rgb = ntsc2rgb (yiq) if (nargin != 1) usage ("ntsc2rgb (yiq)"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/image/ocean.m --- a/scripts/image/ocean.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/image/ocean.m Thu Jul 11 21:20:36 1996 +0000 @@ -19,9 +19,11 @@ ## Colormap. -function map = ocean (number) +## Author: Tony Richardson +## Created: July 1994 +## Adapted-By: jwe - ## Written by Tony Richardson (amr@mpl.ucsd.edu) July 1994. +function map = ocean (number) if (nargin == 0) number = 64; diff -r 2b5788792cad -r 204cc7db6f4a scripts/image/rgb2ind.m --- a/scripts/image/rgb2ind.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/image/rgb2ind.m Thu Jul 11 21:20:36 1996 +0000 @@ -25,9 +25,11 @@ ## ## Bugs: The color map may have duplicate entries. -function [X, map] = rgb2ind (R, G, B) +## Author: Tony Richardson +## Created: July 1994 +## Adapted-By: jwe - ## Written by Tony Richardson (amr@mpl.ucsd.edu) July 1994. +function [X, map] = rgb2ind (R, G, B) if (nargin != 3) usage ("[X, map] = rgb2ind (R, G, B)"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/image/rgb2ntsc.m --- a/scripts/image/rgb2ntsc.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/image/rgb2ntsc.m Thu Jul 11 21:20:36 1996 +0000 @@ -19,9 +19,11 @@ ## Image format conversion. -function yiq = rgb2ntsc (rgb) +## Author: Tony Richardson +## Created: July 1994 +## Adapted-By: jwe - ## Written by Tony Richardson (amr@mpl.ucsd.edu) July 1994. +function yiq = rgb2ntsc (rgb) if (nargin != 1) usage ("rgb2ntsc (rgb)"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/image/saveimage.m --- a/scripts/image/saveimage.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/image/saveimage.m Thu Jul 11 21:20:36 1996 +0000 @@ -52,25 +52,27 @@ ## ## SEE ALSO: loadimage, save, load, colormap -function saveimage (filename, img, img_form, map) - - ## Written by Tony Richardson (amr@mpl.ucsd.edu) July 1994. +## Author: Tony Richardson +## Created: July 1994 +## Adapted-By: jwe - ## Rewritten by jwe to avoid using octoppm and pbm routines so that - ## people who don't have the the pbm stuff installed can still use this - ## function. - ## - ## The conversion to PostScript is based on pnmtops.c, which is part of - ## the portable bitmap utilties and bears this copyright notice: - ## - ## Copyright (C) 1989 by Jef Poskanzer. - ## - ## Permission to use, copy, modify, and distribute this software and its - ## documentation for any purpose and without fee is hereby granted, provided - ## that the above copyright notice appear in all copies and that both that - ## copyright notice and this permission notice appear in supporting - ## documentation. This software is provided "as is" without express or - ## implied warranty. +## Rewritten by jwe to avoid using octoppm and pbm routines so that +## people who don't have the the pbm stuff installed can still use this +## function. +## +## The conversion to PostScript is based on pnmtops.c, which is part of +## the portable bitmap utilties and bears this copyright notice: +## +## Copyright (C) 1989 by Jef Poskanzer. +## +## Permission to use, copy, modify, and distribute this software and its +## documentation for any purpose and without fee is hereby granted, provided +## that the above copyright notice appear in all copies and that both that +## copyright notice and this permission notice appear in supporting +## documentation. This software is provided "as is" without express or +## implied warranty. + +function saveimage (filename, img, img_form, map) if (nargin < 2 || nargin > 4) usage ("saveimage (filename, matrix, [format, [colormap]])"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/linear-algebra/kron.m --- a/scripts/linear-algebra/kron.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/linear-algebra/kron.m Thu Jul 11 21:20:36 1996 +0000 @@ -24,9 +24,11 @@ ## ## x = [a(i,j) b] -function x = kron (a, b) +## Author: A. S. Hodel +## Created: August 1993 +## Adapted-By: jwe - ## Written by A. S. Hodel (scotte@eng.auburn.edu) August 1993. +function x = kron (a, b) if (nargin == 2) diff -r 2b5788792cad -r 204cc7db6f4a scripts/linear-algebra/null.m --- a/scripts/linear-algebra/null.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/linear-algebra/null.m Thu Jul 11 21:20:36 1996 +0000 @@ -27,9 +27,11 @@ ## max (size (A)) * sigma_max (A) * eps, where sigma_max (A) is the ## maximal singular value of A. -function retval = null (A, tol) +## Author: KH +## Created: 24 December 1993. +## Adapted-By: jwe - ## Written by KH (Kurt.Hornik@ci.tuwien.ac.at) on Dec 24, 1993. +function retval = null (A, tol) [U, S, V] = svd (A); diff -r 2b5788792cad -r 204cc7db6f4a scripts/linear-algebra/orth.m --- a/scripts/linear-algebra/orth.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/linear-algebra/orth.m Thu Jul 11 21:20:36 1996 +0000 @@ -27,9 +27,11 @@ ## max (size (A)) * sigma_max (A) * eps, where sigma_max (A) is the ## maximal singular value of A. -function retval = orth (A, tol) +## Author: KH +## Created: 24 December 1993. +## Adapted-By: jwe - ## Written by KH (Kurt.Hornik@ci.tuwien.ac.at) on Dec 24, 1993. +function retval = orth (A, tol) [U, S, V] = svd (A); diff -r 2b5788792cad -r 204cc7db6f4a scripts/linear-algebra/qzhess.m --- a/scripts/linear-algebra/qzhess.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/linear-algebra/qzhess.m Thu Jul 11 21:20:36 1996 +0000 @@ -30,9 +30,11 @@ ## ## Algorithm taken from Golub and Van Loan, Matrix Computations, 2nd ed. -function [aa, bb, q, z] = qzhess (a, b) +## Author: A. S. Hodel +## Created: August 1993 +## Adapted-By: jwe - ## Written by A. S. Hodel (scotte@eng.auburn.edu) August 1993. +function [aa, bb, q, z] = qzhess (a, b) if (nargin != 2) error ("usage: [aa, bb, q, z] = qzhess (a, b)"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/plot/bottom_title.m --- a/scripts/plot/bottom_title.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/plot/bottom_title.m Thu Jul 11 21:20:36 1996 +0000 @@ -26,9 +26,10 @@ ## rather than the top. ## -function bottom_title (text) +## Author: Vinayak Dutt +## Adapted-By: jwe - ## Written by Vinayak Dutt, Dutt.Vinayak@mayo.EDU +function bottom_title (text) if (! gnuplot_has_multiplot) error ("bottom_title: gnuplot does not appear to support this feature"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/plot/mplot.m --- a/scripts/plot/mplot.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/plot/mplot.m Thu Jul 11 21:20:36 1996 +0000 @@ -30,10 +30,10 @@ ## See command plot() for the various options to this command ## as this is just mulitplot version of the same command. -function mplot (...) +## Author: Vinayak Dutt +## Adapted-By: jwe - - ## Written by Vinayak Dutt, Dutt.Vinayak@mayo.EDU +function mplot (...) if (! gnuplot_has_multiplot) error ("mplot: gnuplot does not appear to support this feature"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/plot/multiplot.m --- a/scripts/plot/multiplot.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/plot/multiplot.m Thu Jul 11 21:20:36 1996 +0000 @@ -28,9 +28,11 @@ ## NOTE: this will work only with gnuplot installed with ## multiplot patch -function multiplot (xn, yn) +## Author: Vinayak Dutt, Dutt.Vinayak@mayo.EDU +## Created: 3 July 95 +## Adapted-By: jwe - ## Written by Vinayak Dutt, Dutt.Vinayak@mayo.EDU 3 Jul 95 +function multiplot (xn, yn) if (! gnuplot_has_multiplot) error ("multiplot: gnuplot does not appear to support this feature"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/plot/oneplot.m --- a/scripts/plot/oneplot.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/plot/oneplot.m Thu Jul 11 21:20:36 1996 +0000 @@ -25,9 +25,11 @@ ## Switches from multiplot (if in multiplot mode) to single plot ## mode -function oneplot () +## Author: Vinayak Dutt +## Created: 3 July 95 +## Adapted-By: jwe - ## Written by Vinayak Dutt, Dutt.Vinayak@mayo.EDU 3 Jul 95 +function oneplot () if (! gnuplot_has_multiplot) error ("oneplot: gnuplot does not appear to support this feature"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/plot/plot_border.m --- a/scripts/plot/plot_border.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/plot/plot_border.m Thu Jul 11 21:20:36 1996 +0000 @@ -36,9 +36,11 @@ ## ## Without any arguments, turns borders off. -function plot_border (...) +## Author: Vinayak Dutt +## Created: 3 July 95 +## Adapted-By: jwe - ## Written by Vinayak Dutt, Dutt.Vinayak@mayo.EDU 3 Jul 95 +function plot_border (...) if (! gnuplot_has_multiplot) error ("plot_border: gnuplot does not appear to support this feature"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/plot/subplot.m --- a/scripts/plot/subplot.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/plot/subplot.m Thu Jul 11 21:20:36 1996 +0000 @@ -53,9 +53,10 @@ ## ----------------------------------- ## -function subplot (rows, columns, index) +## Author: Vinayak Dutt +## Adapted-By: jwe - ## Written by Vinayak Dutt, Dutt.Vinayak@mayo.EDU +function subplot (rows, columns, index) if (! gnuplot_has_multiplot) error ("subplot: gnuplot does not appear to support this feature"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/plot/subwindow.m --- a/scripts/plot/subwindow.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/plot/subwindow.m Thu Jul 11 21:20:36 1996 +0000 @@ -26,9 +26,11 @@ ## multiplot mode has to be previously initialized using multiplot() ## command, else this command just becomes an aliad to multiplot() -function subwindow (xn, yn) +## Author: Vinayak Dutt +## Created: 3 July 95 +## Adapted-By: jwe - ## Written by Vinayak Dutt, Dutt.Vinayak@mayo.EDU 3 Jul 95 +function subwindow (xn, yn) if (! gnuplot_has_multiplot) error ("subwindow: gnuplot does not appear to support this feature"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/plot/top_title.m --- a/scripts/plot/top_title.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/plot/top_title.m Thu Jul 11 21:20:36 1996 +0000 @@ -24,9 +24,11 @@ ## ## makes a title with text "text" at the top of the plot -function top_title (text) +## Author: Vinayak Dutt +## Created: 3 July 95 +## Adapted-By: jwe - ## Written by Vinayak Dutt, Dutt.Vinayak@mayo.EDU 3 Jul 95 +function top_title (text) if (! gnuplot_has_multiplot) error ("top_title: gnuplot does not appear to support this feature"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/plot/zlabel.m --- a/scripts/plot/zlabel.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/plot/zlabel.m Thu Jul 11 21:20:36 1996 +0000 @@ -24,9 +24,11 @@ ## ## See other plotting commands also. -function zlabel (text) +## Author: Vinayak Dutt +## Created: 3 July 95 +## Adapted-By: jwe - ## Written by Vinayak Dutt, Dutt.Vinayak@mayo.EDU 3 Jul 95 +function zlabel (text) if (nargin != 1) usage ("zlabel (text)"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/polynomial/compan.m --- a/scripts/polynomial/compan.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/polynomial/compan.m Thu Jul 11 21:20:36 1996 +0000 @@ -42,9 +42,11 @@ ## ## SEE ALSO: poly, roots, residue, conv, deconv, polyval, polyderiv, polyinteg -function A = compan (c) +## Author: Tony Richardson +## Created: June 1994 +## Adapted-By: jwe - ## Written by Tony Richardson (amr@mpl.ucsd.edu) June 1994. +function A = compan (c) if (nargin != 1) usage ("compan (vector)"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/polynomial/conv.m --- a/scripts/polynomial/conv.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/polynomial/conv.m Thu Jul 11 21:20:36 1996 +0000 @@ -29,10 +29,12 @@ ## ## SEE ALSO: deconv, poly, roots, residue, polyval, polyderiv, polyinteg +## Author: Tony Richardson +## Created: June 1994 +## Adapted-By: jwe + function y = conv (a, b) - ## Written by Tony Richardson (amr@mpl.ucsd.edu) June 1994. - if (nargin != 2) usage ("conv(a, b)"); endif diff -r 2b5788792cad -r 204cc7db6f4a scripts/polynomial/deconv.m --- a/scripts/polynomial/deconv.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/polynomial/deconv.m Thu Jul 11 21:20:36 1996 +0000 @@ -31,9 +31,11 @@ ## SEE ALSO: conv, poly, roots, residue, polyval, polyderiv, ## polyinteg -function [b, r] = deconv (y, a) +## Author: Tony Richardson +## Created: June 1994 +## Adapted-By: jwe - ## Written by Tony Richardson (amr@mpl.ucsd.edu) June 1994. +function [b, r] = deconv (y, a) if (nargin != 2) usage ("deconv (y, a)"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/polynomial/poly.m --- a/scripts/polynomial/poly.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/polynomial/poly.m Thu Jul 11 21:20:36 1996 +0000 @@ -26,9 +26,11 @@ ## If x is a vector, poly (x) is a vector of coefficients of the ## polynomial whose roots are the elements of x. -function y = poly (x) +## Author: KH +## Created: 24 December 1993 +## Adapted-By: jwe - ## Written by KH (Kurt.Hornik@neuro.tuwien.ac.at) Dec 24, 1993. +function y = poly (x) if (nargin != 1) usage ("poly (x)"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/polynomial/polyderiv.m --- a/scripts/polynomial/polyderiv.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/polynomial/polyderiv.m Thu Jul 11 21:20:36 1996 +0000 @@ -25,9 +25,11 @@ ## SEE ALSO: poly, polyinteg, polyreduce, roots, conv, deconv, residue, ## filter, polyval, polyvalm -function q = polyderiv (p) +## Author: Tony Richardson +## Created: June 1994 +## Adapted-By: jwe - ## Written by Tony Richardson (amr@mpl.ucsd.edu) June 1994. +function q = polyderiv (p) if (nargin != 1) usage ("polyderiv (vector)"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/polynomial/polyfit.m --- a/scripts/polynomial/polyfit.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/polynomial/polyfit.m Thu Jul 11 21:20:36 1996 +0000 @@ -23,11 +23,13 @@ ## minimizes sumsq (p(x(i)) - y(i)), i.e., that best fits the data ## in the least squares sense. +## Author: KH +## Created: 13 December 1994 +## Adapted-By: jwe + function p = polyfit (x, y, n) - ## Written by KH (Kurt.Hornik@ci.tuwien.ac.at) on Dec 13, 1994 - ## Copyright Dept of Statistics and Probability Theory TU Wien - + if (nargin != 3) usage ("polyfit (x, y, n)"); endif diff -r 2b5788792cad -r 204cc7db6f4a scripts/polynomial/polyinteg.m --- a/scripts/polynomial/polyinteg.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/polynomial/polyinteg.m Thu Jul 11 21:20:36 1996 +0000 @@ -27,9 +27,11 @@ ## SEE ALSO: poly, polyderiv, polyreduce, roots, conv, deconv, residue, ## filter, polyval, polyvalm -function p = polyinteg (p) +## Author: Tony Richardson +## Created: June 1994 +## Adapted-By: jwe - ## Written by Tony Richardson (amr@mpl.ucsd.edu) June 1994. +function p = polyinteg (p) if(nargin != 1) usage ("polyinteg (vector)"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/polynomial/polyreduce.m --- a/scripts/polynomial/polyreduce.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/polynomial/polyreduce.m Thu Jul 11 21:20:36 1996 +0000 @@ -25,9 +25,11 @@ ## SEE ALSO: poly, roots, conv, deconv, residue, filter, polyval, polyvalm, ## polyderiv, polyinteg -function p = polyreduce (p) +## Author: Tony Richardson +## Created: June 1994 +## Adapted-By: jwe - ## Written by Tony Richardson (amr@mpl.ucsd.edu) June 1994. +function p = polyreduce (p) index = find (p == 0); diff -r 2b5788792cad -r 204cc7db6f4a scripts/polynomial/polyval.m --- a/scripts/polynomial/polyval.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/polynomial/polyval.m Thu Jul 11 21:20:36 1996 +0000 @@ -35,9 +35,11 @@ ## SEE ALSO: polyvalm, poly, roots, conv, deconv, residue, filter, ## polyderiv, polyinteg -function y = polyval (c, x) +## Author: Tony Richardson +## Created: June 1994 +## Adapted-By: jwe - ## Written by Tony Richardson (amr@mpl.ucsd.edu) June 1994. +function y = polyval (c, x) if (nargin != 2) usage ("polyval (c, x)"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/polynomial/polyvalm.m --- a/scripts/polynomial/polyvalm.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/polynomial/polyvalm.m Thu Jul 11 21:20:36 1996 +0000 @@ -36,9 +36,11 @@ ## SEE ALSO: polyval, poly, roots, conv, deconv, residue, filter, ## polyderiv, polyinteg -function y = polyvalm (c, x) +## Author: Tony Richardson +## Created: June 1994 +## Adapted-By: jwe - ## Written by Tony Richardson (amr@mpl.ucsd.edu) June 1994. +function y = polyvalm (c, x) if(nargin != 2) usage ("polyvalm (c, x)"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/polynomial/residue.m --- a/scripts/polynomial/residue.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/polynomial/residue.m Thu Jul 11 21:20:36 1996 +0000 @@ -62,9 +62,11 @@ ## ## SEE ALSO: poly, roots, conv, deconv, polyval, polyderiv, polyinteg -function [r, p, k, e] = residue (b, a, toler) +## Author: Tony Richardson +## Created: June 1994 +## Adapted-By: jwe - ## Written by Tony Richardson (amr@mpl.ucsd.edu) June 1994. +function [r, p, k, e] = residue (b, a, toler) ## Here's the method used to find the residues. ## The partial fraction expansion can be written as: diff -r 2b5788792cad -r 204cc7db6f4a scripts/polynomial/roots.m --- a/scripts/polynomial/roots.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/polynomial/roots.m Thu Jul 11 21:20:36 1996 +0000 @@ -22,11 +22,12 @@ ## For a vector v with n components, return the roots of the ## polynomial v(1) * z^(n-1) + ... + v(n-1) * z + v(n). +## Author: KH +## Created: 24 December 1993 +## Adapted-By: jwe + function r = roots (v) - ## Written by KH (Kurt.Hornik@ci.tuwien.ac.at) on Dec 24, 1993 - ## Updated by KH on Nov 25, 1994 - if (min (size (v)) > 1 || nargin != 1) usage ("roots (v), where v is a vector"); endif diff -r 2b5788792cad -r 204cc7db6f4a scripts/signal/fftconv.m --- a/scripts/signal/fftconv.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/signal/fftconv.m Thu Jul 11 21:20:36 1996 +0000 @@ -27,10 +27,12 @@ ## The computation uses the FFT by calling fftfilt. If the optional ## argument N is specified, an N-point FFT is used. +## Author: KH +## Created: 3 September 1994 +## Adapted-By: jwe + function c = fftconv (a, b, N) - ## Written by KH (Kurt.Hornik@ci.tuwien.ac.at) on Sep 3, 1994. - if (nargin < 2 || nargin > 3) usage ("fftconv (b, x [, N])"); endif diff -r 2b5788792cad -r 204cc7db6f4a scripts/signal/fftfilt.m --- a/scripts/signal/fftfilt.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/signal/fftfilt.m Thu Jul 11 21:20:36 1996 +0000 @@ -22,14 +22,16 @@ ## y = fftfilt (b, x) filters x with the FIR filter b using the FFT. ## y = fftfilt (b, x, N) uses the overlap-add method to filter x with ## b using an N-point FFT. +## +## Reference: Oppenheim & Schafer (1989). Discrete-time Signal +## Processing (Chapter 8). Prentice-Hall. + +## Author: KH +## Created: 3 September 1994 +## Adapted-By: jwe function y = fftfilt (b, x, N) - ## Written by KH (Kurt.Hornik@ci.tuwien.ac.at) on Sep 3, 1994 - - ## Reference: Oppenheim & Schafer (1989). Discrete-time Signal - ## Processing (Chapter 8). Prentice-Hall. - ## If N is not specified explicitly, we do not use the overlap-add ## method at all because loops are really slow. Otherwise, we only ## ensure that the number of points in the FFT is the smallest power diff -r 2b5788792cad -r 204cc7db6f4a scripts/specfun/beta.m --- a/scripts/specfun/beta.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/specfun/beta.m Thu Jul 11 21:20:36 1996 +0000 @@ -22,10 +22,12 @@ ## Returns the beta function beta(a,b) = gamma(a) * gamma(b) / gamma(a+b) ## of a and b. +## Author: KH +## Created: 13 June 1993 +## Adapted-By: jwe + function retval = beta (a, b) - ## Written by KH (Kurt.Hornik@ci.tuwien.ac.at) on Jun 13, 1993 - if (nargin != 2) usage ("beta (a, b)"); endif diff -r 2b5788792cad -r 204cc7db6f4a scripts/specfun/betai.m --- a/scripts/specfun/betai.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/specfun/betai.m Thu Jul 11 21:20:36 1996 +0000 @@ -24,10 +24,12 @@ ## If x has more than one component, both a and b must be scalars. ## If x is a scalar, a and b must be of compatible dimensions. +## Author: KH +## Created: 2 August 1994. +## Adapted-By: jwe + function y = betai (a, b, x) - ## Written by KH (Kurt.Hornik@ci.tuwien.ac.at) on Aug 2, 1994. - ## Computation is based on the series expansion ## betai(a, b, x) ## = \frac{1}{B(a, b)} x^a diff -r 2b5788792cad -r 204cc7db6f4a scripts/specfun/gammai.m --- a/scripts/specfun/gammai.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/specfun/gammai.m Thu Jul 11 21:20:36 1996 +0000 @@ -30,10 +30,12 @@ ## If neither a nor x is scalar, the sizes of a and x must agree, and ## gammai is applied pointwise. +## Author: KH +## Created: 13 August 1994 +## Adapted-By: jwe + function y = gammai (a, x) - ## Written by KH (Kurt.Hornik@ci.tuwien.ac.at) on Aug 13, 1994 - if (nargin != 2) usage ("gammai (a, x)"); endif diff -r 2b5788792cad -r 204cc7db6f4a scripts/statistics/corrcoef.m --- a/scripts/statistics/corrcoef.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/statistics/corrcoef.m Thu Jul 11 21:20:36 1996 +0000 @@ -24,10 +24,11 @@ ## i-th variable in X and the j-th variable in Y. ## corrcoef(X) is corrcoef(X, X). -function retval = corrcoef (X, Y) +## Author: Kurt Hornik +## Created: March 1993 +## Adapted-By: jwe - ## Written by Kurt Hornik (hornik@ci.tuwien.ac.at) March 1993. - ## Dept of Probability Theory and Statistics TU Wien, Austria. +function retval = corrcoef (X, Y) if (nargin < 1 || nargin > 2) usage ("corrcoef (X [, Y])"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/statistics/cov.m --- a/scripts/statistics/cov.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/statistics/cov.m Thu Jul 11 21:20:36 1996 +0000 @@ -24,10 +24,11 @@ ## between the i-th variable in X and the j-th variable in Y. ## cov(X) is cov(X, X). -function retval = cov (X, Y) +## Author: Kurt Hornik +## Created: March 1993 +## Adapted-By: jwe - ## Written by Kurt Hornik (hornik@ci.tuwien.ac.at) March 1993. - ## Dept of Probability Theory and Statistics TU Wien, Austria. +function retval = cov (X, Y) if (nargin < 1 || nargin > 2) usage ("cov (X [, Y])"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/statistics/gls.m --- a/scripts/statistics/gls.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/statistics/gls.m Thu Jul 11 21:20:36 1996 +0000 @@ -33,11 +33,12 @@ ## v is the GLS estimator for s^2. ## R = Y - X*BETA is the matrix of GLS residuals. +## Author: Teresa Twaroch +## Created: May 1993 +## Adapted-By: jwe + function [BETA, v, R] = gls (Y, X, O) - ## Written by Teresa Twaroch (twaroch@ci.tuwien.ac.at) May 1993. - ## Dept of Probability Theory and Statistics TU Wien, Austria. - if (nargin != 3) usage ("[BETA, v [, R]] = gls (Y, X, O)"); endif diff -r 2b5788792cad -r 204cc7db6f4a scripts/statistics/kurtosis.m --- a/scripts/statistics/kurtosis.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/statistics/kurtosis.m Thu Jul 11 21:20:36 1996 +0000 @@ -28,9 +28,11 @@ ## If x is a matrix, return a row vector containing the kurtosis for each ## column. -function retval = kurtosis (x) +## Author: KH +## Created: 29 July 1994 +## Adapted-By: jwe - ## Written by KH (Kurt.Hornik@ci.tuwien.ac.at) on Jul 29, 1994. +function retval = kurtosis (x) if (nargin != 1) usage ("kurtosis (x)"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/statistics/mahalanobis.m --- a/scripts/statistics/mahalanobis.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/statistics/mahalanobis.m Thu Jul 11 21:20:36 1996 +0000 @@ -23,10 +23,11 @@ ## samples X and Y, which must have the same number of components ## (columns), but may have a different number of observations (rows). -function retval = mahalanobis (X, Y) +## Author: Friedrich Leisch +## Created: July 1993 +## Adapted-By: jwe - ## Written by Friedrich Leisch (leisch@ci.tuwien.ac.at) July 1993. - ## Dept of Probability Theory and Statistics TU Wien, Austria. +function retval = mahalanobis (X, Y) if (nargin != 2) usage ("mahalanobis (X, Y)"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/statistics/ols.m --- a/scripts/statistics/ols.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/statistics/ols.m Thu Jul 11 21:20:36 1996 +0000 @@ -39,10 +39,11 @@ ## ## R = Y - X*BETA is the matrix of OLS residuals. -function [BETA, SIGMA, R] = ols (Y, X) +## Author: Teresa Twaroch +## Created: May 1993 +## Adapted-By: jwe - ## Written by Teresa Twaroch (twaroch@ci.tuwien.ac.at) May 1993. - ## Dept of Probability Theory and Statistics TU Wien, Austria. +function [BETA, SIGMA, R] = ols (Y, X) if (nargin != 2) error("usage : [BETA, SIGMA [, R]] = ols (Y, X)"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/statistics/skewness.m --- a/scripts/statistics/skewness.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/statistics/skewness.m Thu Jul 11 21:20:36 1996 +0000 @@ -28,9 +28,11 @@ ## If x is a matrix, return a row vector containing the skewness for each ## column. -function retval = skewness (x) +## Author: KH +## Created: 29 July 1994 +## Adapted-By: jwe - ## Written by KH (Kurt.Hornik@ci.tuwien.ac.at) on Jul 29, 1994. +function retval = skewness (x) if (nargin != 1) usage ("skewness (x)"); diff -r 2b5788792cad -r 204cc7db6f4a scripts/strings/strrep.m --- a/scripts/strings/strrep.m Thu Jul 11 20:18:38 1996 +0000 +++ b/scripts/strings/strrep.m Thu Jul 11 21:20:36 1996 +0000 @@ -22,11 +22,12 @@ ## Replace all occurences of the substring x of the string s with the ## string y. +## Author: Kurt Hornik +## Created: 11 November 1994 +## Adapted-By: jwe + function t = strrep (s, x, y) -## Written by Kurt Hornik on 1994/10/11 - ## Updated by Kurt Hornik on 1996/05/25 - if (nargin <> 3) usage ("strrep (s, x, y)"); endif