Groups | Search | Server Info | Login | Register


Groups > comp.lang.awk > #155

Re: gnuplot algorithm help

From Janis Papanagnou <janis_papanagnou@hotmail.com>
Newsgroups comp.lang.awk
Subject Re: gnuplot algorithm help
Date 2011-04-11 14:40 +0200
Organization Aioe.org NNTP Server
Message-ID <inusso$th5$1@speranza.aioe.org> (permalink)
References <4da27014$0$669$c3e8da3$b280bf18@news.astraweb.com> <inue7l$oa7$1@speranza.aioe.org> <4da2d3c0$0$794$c3e8da3$e408f015@news.astraweb.com>

Show all headers | View raw


Am 11.04.2011 12:11, schrieb Mike Rhodes:
>> Am 11.04.2011 05:05, schrieb Mike Rhodes:
>>>
>>> # START_TIME   MBPS     DUR
>>> 1302350771.016 0.003040 1.752
>>> 1302350788.681 0.047432 4.548
>>> 1302350792.845 0.032472 1.120
>>> 1302350792.901 0.021536 0.172
>>> 1302350793.217 0.023680 0.420
>>> 1302350800.717 0.025024 0.492
>>> 1302350814.777 0.001248 0.000
>>> 1302350814.781 0.001248 0.020
>>> 1302350823.701 0.019568 0.228
>>> 1302350830.432 0.000832 0.096
>
> I shouldn't have said "running total." That's not exactly what I'm
> after. Rather, $1 and $3 should stay the same, but when $1 is greater
> than any previous $1+$3 that record's $2 should be the sum of its $2 and
> those previous $2's. So given the data set above, this would be the result:
>
> 1302350771.016 0.003040 1.752
> 1302350788.681 0.047432 4.548
> 1302350792.845 0.079904 1.120
> 1302350792.901 0.148872 0.172

I am failling to see where that 0.148872 comes from.

> 1302350793.217 0.151016 0.420
> 1302350800.717 0.025024 0.492
> 1302350814.777 0.001248 0.000
> 1302350814.781 0.001248 0.020
> 1302350823.701 0.019568 0.228
> 1302350830.432 0.000832 0.096
>
> Note that lines 3, 4, and 5 have different $2 values than the original set.
>

Janis

Back to comp.lang.awk | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

gnuplot algorithm help Mike Rhodes <M8R-1cd059@mailinator.com> - 2011-04-10 23:05 -0400
  Re: gnuplot algorithm help Janis Papanagnou <janis_papanagnou@hotmail.com> - 2011-04-11 10:30 +0200
    Re: gnuplot algorithm help Janis Papanagnou <janis_papanagnou@hotmail.com> - 2011-04-11 12:06 +0200
    Re: gnuplot algorithm help Mike Rhodes <M8R-1cd059@mailinator.com> - 2011-04-11 06:11 -0400
      Re: gnuplot algorithm help Janis Papanagnou <janis_papanagnou@hotmail.com> - 2011-04-11 14:40 +0200
        Re: gnuplot algorithm help Mike Rhodes <M8R-1cd059@mailinator.com> - 2011-04-11 12:29 -0400
          Re: gnuplot algorithm help Janis Papanagnou <janis_papanagnou@hotmail.com> - 2011-04-11 19:51 +0200
            Re: gnuplot algorithm help Mike Rhodes <M8R-1cd059@mailinator.com> - 2011-04-11 19:42 -0400

csiph-web