1 |
On Thu, Sep 22, 2005 at 01:38:35PM -0500, Hareesh Nagarajan wrote: |
2 |
> Suppose I have 2 files, the first file's contents are (0, 100) and the |
3 |
> second file's contents are (0, 50). Now, can I make GNUPLOT plot a |
4 |
> graph with the average, i.e. (0, 100+50/2)? |
5 |
> |
6 |
> Sure, I could create a third file which stores the average (0, 75) and |
7 |
> I could just plot the third file using GNUPLOT. |
8 |
> |
9 |
> The solution needs to be generic because each of these files could |
10 |
> have any number of lines and I could have any number of files. But |
11 |
> what I need to plot will always be the average. |
12 |
|
13 |
the problem needs to be specific because I have no idea what you are |
14 |
thinking of: |
15 |
|
16 |
1) Are the number of lines per file going to be the same? I.e., you |
17 |
can have a variable number of lines, N, but the N is independent of |
18 |
the file you choose? |
19 |
|
20 |
2) Are you doing a line by line average? For 2 files of 3 lines |
21 |
each, will you end up with a final average with 3 data points (1st |
22 |
line from 1st file with the 1st line from second file and so on), or |
23 |
will you just have the average of all 6 points? |
24 |
|
25 |
There are many more uncertainties to your question, please be more |
26 |
specific. |
27 |
|
28 |
W |
29 |
-- |
30 |
S: mm |
31 |
W: hum, dan's been idle for almost three days..... |
32 |
W: what's up with him!? |
33 |
S: have you seen him? is he dead? |
34 |
W: Yes, and Yes |
35 |
S: eek! did you kill him? |
36 |
W: I saw a zombie of distinct resemblance to Daniel Jonathan Peng yesterday and |
37 |
played pool with it for two hours |
38 |
W: no |
39 |
W: i think the frozen halibut he ordered was accidently airdropped instead of |
40 |
ground mailed |
41 |
W: and the 140 pounder, poor beast, is deeply hurt |
42 |
W: from landing on top of dan, instead of on the ground |
43 |
S: frozen... halibut...? |
44 |
W: so instead of dying instantaneously, the poor beast suffered a great deal |
45 |
W: yes |
46 |
W: we are just glad he didn't order a sperm whale... because a mistake of that |
47 |
magnitude would have destroyed forbes college altogether |
48 |
S: erk... what a strange occurence |
49 |
Sortir en Pantoufles: up 41 days, 23:31 |
50 |
-- |
51 |
gentoo-user@g.o mailing list |