Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-2364

Piggybank function which turns ranges of times into a time series of time,occurrences pairs

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None
    • Patch Available

    Description

      This came up on the listserv. Someone wanted a way to turn (start,end) ranges like

      {(1,3),(2,2),(3,4)}

      into a timeseries with the number of ranges which include the given time ie

      {(1,1),(2,2),(3,2),(4,1)}

      with an optional lag parameter. This patch is that. I included tests. Maybe there is a better name, or this should be in a different package?

      Attachments

        1. PIG2364.patch
          12 kB
          Jonathan Coveney
        2. window.patch
          10 kB
          Jonathan Coveney

        Activity

          People

            jcoveney Jonathan Coveney
            jcoveney Jonathan Coveney
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: