v16i074: nlmdl - Estimate nonlinear statistical models, Patch1
Ron Gallant
arg at ccvr1.cc.ncsu.edu
Tue Jan 15 09:16:55 AEST 1991
Submitted-by: arg at ccvr1.cc.ncsu.edu (Ron Gallant)
Posting-number: Volume 16, Issue 74
Archive-name: nlmdl/patch1
Patch-To: nlmdl: Volume 16, Issue 63-68
This patch corrects factual and grammatical errors in the documentation
to nlmdl. It affects files README, nlmdl.h, and patchlevel.h.
#! /bin/sh
# This is a shell archive. Remove anything before this line, then unpack
# it by saving it into a file and typing "sh file". To overwrite existing
# files, type "sh file -c". You can also feed this as standard input via
# unshar, or by typing "sh <file", e.g.. If this archive is complete, you
# will see the following message at the end:
# "End of archive 1 (of 1)."
# Contents: pch01 pch01README
# Wrapped by arg at sparc on Sat Jan 12 10:55:37 1991
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f 'pch01' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'pch01'\"
else
echo shar: Extracting \"'pch01'\" \(3711 characters\)
sed "s/^X//" >'pch01' <<'END_OF_FILE'
X------- patchlevel.h -------
XPrereq: 0
X*** ../nlmdl_ver_2.0_unpacked/patchlevel.h Sat Jan 12 09:24:28 1991
X--- patchlevel.h Sat Jan 12 08:42:32 1991
X***************
X*** 25,30 ****
X
X ------------------------------------------------------------------------- */
X
X! #define PATCHLEVEL 0
X
X
X--- 25,30 ----
X
X ------------------------------------------------------------------------- */
X
X! #define PATCHLEVEL 1
X
X
X------- README -------
X*** ../nlmdl_ver_2.0_unpacked/README Sat Jan 12 09:24:19 1991
X--- README Sat Jan 12 08:20:34 1991
X***************
X*** 20,28 ****
X As distributed, the code is set up for use with GNU's 1.37 g++ compiler on a
X Unix box. To test the code using one of the examples, e.g. ch1eg1, cd to
X ch1eg1 and type make -f ../Makefile. Each directory has a file detail.bak
X! created using nlmdl > detail.bak that used for comparison. For version 1.35
X! of g++, the #undef and #define for I/O style in usual.h will have to be set to
X! GNU. The code hasn't been tested with other versions.
X
X The code can also be used with Borland's Turbo C++ compiler. To use Turbo C++,
X permute the #undef and #define for compiler choice in usual.h, copy the
X--- 20,28 ----
X As distributed, the code is set up for use with GNU's 1.37 g++ compiler on a
X Unix box. To test the code using one of the examples, e.g. ch1eg1, cd to
X ch1eg1 and type make -f ../Makefile. Each directory has a file detail.bak
X! created using nlmdl > detail.bak that can be used for comparison. For version
X! 1.35 of g++, the #undef and #define for I/O style in usual.h will have to be
X! set to GNU. The code hasn't been tested with other versions.
X
X The code can also be used with Borland's Turbo C++ compiler. To use Turbo C++,
X permute the #undef and #define for compiler choice in usual.h, copy the
X------- nlmdl.h -------
X*** ../nlmdl_ver_2.0_unpacked/nlmdl.h Sat Jan 12 09:24:34 1991
X--- nlmdl.h Sat Jan 12 09:05:14 1991
X***************
X*** 69,75 ****
X class model is declared in model.h which should match the following template:
X
X #include "status.h"
X! external status s;
X
X class model
X {
X--- 69,75 ----
X class model is declared in model.h which should match the following template:
X
X #include "status.h"
X! extern status s;
X
X class model
X {
X***************
X*** 91,97 ****
X
X For SUR, code the function Z as follows:
X
X! realmat model::Z(INTEGER t) { }
X
X In writing the class model, the relevant facts regarding program flow in
X nlmdl.cc are as follows:
X--- 91,97 ----
X
X For SUR, code the function Z as follows:
X
X! void model::Z(INTEGER t) { }
X
X In writing the class model, the relevant facts regarding program flow in
X nlmdl.cc are as follows:
X***************
X*** 134,140 ****
X m.dele_t.resize(s.M,s.p);
X if (s.K > 0) m.Z_t.resize(s.K,1);
X
X! and estimation proceeds using these settings and dimensions.
X
X 4. Finally, terminate() of class model is called; terminate() can read data,
X write data, etc. If terminate() returns 0 execution stops, otherwise
X--- 134,140 ----
X m.dele_t.resize(s.M,s.p);
X if (s.K > 0) m.Z_t.resize(s.K,1);
X
X! Estimation proceeds using these settings and dimensions.
X
X 4. Finally, terminate() of class model is called; terminate() can read data,
X write data, etc. If terminate() returns 0 execution stops, otherwise
X***************
X*** 161,167 ****
X #include "status.h"
X #include "model.h"
X
X! #define VERSION "2.0"
X
X #endif
X
X--- 161,167 ----
X #include "status.h"
X #include "model.h"
X
X! #define VERSION "2.1"
X
X #endif
X
END_OF_FILE
if test 3711 -ne `wc -c <'pch01'`; then
echo shar: \"'pch01'\" unpacked with wrong size!
fi
# end of 'pch01'
fi
if test -f 'pch01README' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'pch01README'\"
else
echo shar: Extracting \"'pch01README'\" \(302 characters\)
sed "s/^X//" >'pch01README' <<'END_OF_FILE'
XIn the directory that contains patchlevel.h, nlmdl.h, and README do this:
X
Xpatch < pch01
X
XUse Larry Wall's <lwall at jpl-devvax.jpl.nasa.gov> patch program, available
Xby ftp anonymous from sunic.sunet.se (130.237.216.2) in directory pub as
Xfile patch.tar.Z
X
XThis patch fixes errors in the documentation.
END_OF_FILE
if test 302 -ne `wc -c <'pch01README'`; then
echo shar: \"'pch01README'\" unpacked with wrong size!
fi
# end of 'pch01README'
fi
echo shar: End of archive 1 \(of 1\).
cp /dev/null ark1isdone
MISSING=""
for I in 1 ; do
if test ! -f ark${I}isdone ; then
MISSING="${MISSING} ${I}"
fi
done
if test "${MISSING}" = "" ; then
echo You have the archive.
rm -f ark[1-9]isdone
else
echo You still need to unpack the following archives:
echo " " ${MISSING}
fi
## End of shell archive.
exit 0
exit 0 # Just in case...
--
Kent Landfield INTERNET: kent at sparky.IMD.Sterling.COM
Sterling Software, IMD UUCP: uunet!sparky!kent
Phone: (402) 291-8300 FAX: (402) 291-4362
Please send comp.sources.misc-related mail to kent at uunet.uu.net.
More information about the Comp.sources.misc
mailing list