[19308] in s-news-athena

home help back first fref pref prev next nref lref last post

[S] another challenge

daemon@ATHENA.MIT.EDU (Robert Anthony Canales)
Thu Sep 23 20:24:44 1999

Date: Thu, 23 Sep 1999 17:18:18 -0700 (PDT)
From: Robert Anthony Canales <rcanales@leland.stanford.edu>
To: s-news@wubios.wustl.edu
Message-Id: <Pine.GSO.3.96.990923165528.20378A-100000@elaine14.Stanford.EDU>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


Hello,
	I've got another challenge for the user group.  I have a file of
sequential simultaneous events (1,2,3) with the duration (in seconds) for
these simultaneous occurrences. The files range from 2 hours to 8 hours
and I need to run statistics on segments of 15 min.  So I need to cut the
file into segments of 15 minutes based on the duration column.  I am
attempting to write a function that uses the value of the cumulative sum
of the duration column, but this seems very inefficient and requires
coding for several conditions for breaking files if a cut off point occurs
between or on a duration value.


For example, a file may appear as:

event1  event2  event3  duration 
  A       X       L       333 
  A	  Y	  L	  250
  A	  X       M       507
  B       X       L       100 
...

and we would want it to be segmented into:

A	X	L	333
A	Y	L	250
A	X	M	317

and

A	X	M	190
B	X	L	100
...

any help/hints are appreciated..thanks
Robert

-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

home help back first fref pref prev next nref lref last post