Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^5: Compare fields in a file

by johngg (Canon)
on Feb 10, 2009 at 19:57 UTC ( [id://742866]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Compare fields in a file
in thread Compare fields in a file

Perhaps I've misunderstood the requirement but that output looks as I would have expected.

  • Two events at time 07:03:08, event with amplitude 2 chosen.

  • Two events at time 07:03:09, event with amplitude 2 chosen.

  • A single event at time 07:03:10, the only event (with amplitude 6) chosen.

  • A single event at time 07:03:11, the only event (with amplitude 7) chosen.

So far as I can tell, that satisfies the requirement "I'd like to keep only the largest magnitude within each second" to the letter.

Perhaps you could explain further in which way it is "broken."

Cheers,

JohnGG

Replies are listed 'Best First'.
Re^6: Compare fields in a file
by Not_a_Number (Prior) on Feb 10, 2009 at 21:41 UTC
    Perhaps I've misunderstood the requirement (...)

    Oops, no, it seems that it's me who completely misread the OP's requirements.

    Sorry :(

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://742866]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-19 05:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found