home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / perl / 7509 < prev    next >
Encoding:
Text File  |  1992-12-20  |  2.2 KB  |  61 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!caen!destroyer!sol.ctr.columbia.edu!news.cs.columbia.edu!thayer
  3. From: thayer@cs.columbia.edu (Charles Thayer)
  4. Subject: Re: Statistic routines ?
  5. Message-ID: <BzFMqt.A7E@cs.columbia.edu>
  6. Summary: Paper on data manip
  7. Keywords: statistic
  8. Sender: news@cs.columbia.edu (The Daily News)
  9. Bcc: thayer
  10. Organization: Columbia University Department of Computer Science
  11. References: <Bz7qCA.Gy5@cosy.sbg.ac.at>
  12. Date: Fri, 18 Dec 1992 01:56:52 GMT
  13. Lines: 46
  14.  
  15. In article <Bz7qCA.Gy5@cosy.sbg.ac.at> lendl@cosy.sbg.ac.at (Otmar Lendl) writes:
  16. >Before I start to write my own set of functions (Mean, standard-deviation,
  17. >histograms, ...) I better ask if there are already such beasts.
  18. >I checked the script-archives listed in the FAQs (convex, ohio-state),
  19. >but could not find anything suitable.
  20. >
  21. >Can anyone give me pointers ?
  22. >
  23. >/Otmar
  24.  
  25. On a related note:
  26.  
  27. On wingra.stat.wisc.edu via anon ftp you can obtain the paper "Data
  28. Manipulation in Perl" which is a helpful short paper if you are
  29. getting started with perl.
  30.  
  31. Personally, for the one statistics related chore I do, I use Splus
  32. encased in perl (of course.)  Splus is a terrific package and I highly
  33. recommend it, but it's a commercial product.  So I have a lot of:
  34.  
  35.     open(PIPE, '| Splus');
  36.     print PIPE <<"EOF";
  37. d<-read.table(\"uptime.$host.data\", header=T, sep=\":\")
  38. attach(d)
  39. ...
  40. postscript(\"uptime.month.$host.ps\")
  41. plot(load15 ~ omonths)
  42. ...
  43. EOF
  44.  
  45. What I do is collect simple `uptime` lines from a number of hosts.
  46. Remunge these with perl regex matching.  Feed the data to Splus which
  47. generates postscript plots.  Build a latex file which then uses psfig
  48. to include the plots.
  49.  
  50. Incidentally.  A nice thing you can do with your statistics is create
  51. data files then run gnuplot on the data files.  It's a simple and flexible
  52. way to take some handwritten stuff and throw a free X-windows front-end
  53. on.  If you get really involved in graphics Wafe and tk have some plotting
  54. widgets.
  55.  
  56. /charles
  57. PS.  Maybe someone should write numerical recipes in perl :)
  58. -- 
  59. ==============================================================================
  60. Charles Thayer, Columbia University, Dept. CS, Tech-staff... my words only.
  61.