Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #3223

Re: stats for a row not a column

From Ethan A Merritt <sfeam@users.sourceforge.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: stats for a row not a column
Date 2016-02-09 11:44 -0800
Organization gnuplot development
Message-ID <n9dfdr$7bf$1@dont-email.me> (permalink)
References <n909ea$1lk$1@dont-email.me> <n92qmm$i8v$1@solani.org> <n92vbv$4i9$1@dont-email.me>

Show all headers | View raw


Jörg Buchholz wrote:

> On 05.02.2016 19:46, Karl Ratzsch wrote:
>> Am 04.02.2016 um 20:42 schrieb Jörg Buchholz:
>>>
>>> is there a way to use the stats command for a row?

Not that I know of.

>> It should be possible with "stats matrix", if you limit the yrange
>> in the right way?

I don't think you can use xrange or yrange to limit the indices 
in a matrix.  But I could be wrong on this point.


> Next problem with "stats matrix" is "mean".
> 
> "B 1 - 5" mean in "stats matrix" is 1.5 (6/4). In "stats using" the mean
> is 3.0 (6/2). That is what I wont to have. So for me there a two
> problems and no solution.
> 
> Is it intentional that "stats matrix" and "stats using" calculate the
> mean in two different ways?

Yes.

"stats using N" will only look at column N

"stats matrix" will look at all entries in the matrix

Note that normally in the latter case you want "stats matrix using 3",
since that is what will get you the value of the element matrix[i][j].
In the absence of an explicit using specification it probably
defaults to the equivalent of "matrix using 1", which would give
you the x coordinate of each matrix entry rather than its value.

	Ethan

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

stats for a row not a column Jörg Buchholz <bookwood4news@freenet.de> - 2016-02-04 20:42 +0100
  Re: stats for a row not a column Jörg Buchholz <bookwood4news@freenet.de> - 2016-02-05 18:34 +0100
  Re: stats for a row not a column Karl Ratzsch <mail.kfr@gmx.net> - 2016-02-05 19:46 +0100
    Re: stats for a row not a column Jörg Buchholz <bookwood4new@freenet.de> - 2016-02-05 21:09 +0100
      Re: stats for a row not a column Karl Ratzsch <mail.kfr@gmx.net> - 2016-02-07 17:54 +0100
        Re: stats for a row not a column Jörg Buchholz <bookwood4news@freenet.de> - 2016-02-08 19:32 +0100
        Re: stats for a row not a column Karl Ratzsch <mail.kfr@gmx.net> - 2016-02-09 10:15 +0100
      Re: stats for a row not a column Ethan A Merritt <sfeam@users.sourceforge.net> - 2016-02-09 11:44 -0800
        Re: stats for a row not a column Karl Ratzsch <mail.kfr@gmx.net> - 2016-02-09 22:48 +0100

csiph-web