Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Averaging

Started 1 month, 1 week ago by Muhammad Rahiz
Hello all, I'm trying to perform an averaging procedure which selects a selection of rows, average the corresponding value, selects the next set of rows and average the corresponding values etc. The data below illustrates what I want to do. Given two columns (day and value), I want to perform an annual average. This means, average the first 365 rows, followed by the next 365 rows, and the...
Site: The UNIX Forums - the Top UNIX & Linux Q&A on the Web  The UNIX Forums - the Top UNIX & Linux Q&A on the Web - site profile
Forum: UNIX for Dummies Questions & Answers  UNIX for Dummies Questions & Answers - forum profile
Total authors: 3 authors
Total thread posts: 3 posts
Thread activity: no new posts during last week
Domain info for: unix.com

Other posts in this thread:

thegeek replied 1 month, 1 week ago
ok, you are explanations are clear. Do total/366 only at every 4th time... What suggestion you want ?! or What is the doubt you have here ?

skinnygav replied 1 month, 1 week ago
Hi i'm quite inexeperienced but my suggestion would be to use the modulus of 4 for your trigger to /366 instead of /365. Hope this helps you out a bit

 

Top contributing authors

Name
Posts
Muhammad Rahiz
1
user's latest post:
Averaging
Published (2009-11-10 13:05:00)
Hello all, I'm trying to perform an averaging procedure which selects a selection of rows, average the corresponding value, selects the next set of rows and average the corresponding values etc. The data below illustrates what I want to do. Given two columns (day and value), I want to perform an annual average. This means, average the first 365 rows, followed by the next 365 rows, and the next 365 rows. i.e. average line 1 to 365 (no. of...
thegeek
1
user's latest post:
Averaging
Published (2009-11-11 08:42:00)
ok, you are explanations are clear. Do total/366 only at every 4th time... What suggestion you want ?! or What is the doubt you have here ?
skinnygav
1
user's latest post:
Averaging
Published (2009-11-12 06:30:00)
Hi i'm quite inexeperienced but my suggestion would be to use the modulus of 4 for your trigger to /366 instead of /365. Hope this helps you out a bit

Related threads on "The UNIX Forums - the Top UNIX & Linux Q&A on the Web":

Related threads on other sites:

Thread profile page for "Averaging" on http://www.unix.com. This report page is a snippet summary view from a single thread "Averaging", located on the Message Board at http://www.unix.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity