Uploaded image for project: 'Chukwa (retired)'
  1. Chukwa (retired)
  2. CHUKWA-69

Calculate trapezoid area for a given series of data

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • User Interface
    • None

    Description

      Calculate trapezoid area for a given series of data.

      suppose we have:

      x0, x1, x2, x3
      y0, y1, y2, y3

      the area would be

      (x1-x0) * (y1+y0)/2 + (x2-x1) * (y2+y1)/2 + (x3-x2) * (y3+y2)/2

      Attachments

        1. CHUKWA-69-1.patch
          5 kB
          Eric Yang
        2. chukwa-69.patch
          5 kB
          Cheng

        Activity

          People

            zhangyongjiang Cheng
            zhangyongjiang Cheng
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: