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


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

if else with lines

Path csiph.com!news.swapon.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Jörg Buchholz <bookwood4new@freenet.de>
Newsgroups comp.graphics.apps.gnuplot
Subject if else with lines
Date Mon, 28 Nov 2016 20:27:27 +0100
Organization A noiseless patient Spider
Lines 22
Message-ID <o1i0ci$t97$1@dont-email.me> (permalink)
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
Injection-Date Mon, 28 Nov 2016 19:26:10 -0000 (UTC)
Injection-Info mx02.eternal-september.org; posting-host="8b142826772dd883e67fe1c2aac66256"; logging-data="29991"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/UFLT45O140hii6wlAE95l+mSGYYDbhX4="
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0
X-Mozilla-News-Host news://news.eternal-september.org:119
Cancel-Lock sha1:7grhLjORgpoPWlCyN//AcfzdHrY=
Xref csiph.com comp.graphics.apps.gnuplot:3489

Show key headers only | View raw


Hello

Sorry, I can't find the starting point for a solution to produce a plot
where the y value dependence from the line before and behind the current
line in a data set.

What I want to do is the following.

If y(n-1) < y(n) and y(n+1) < y(n) than y = y+a
If y(n-1) > y(n) and y(n+1) > y(n) than y = y-a
else y = y

Where n is the number of the line in a data set. "a" is a variable. The
y value is in a column of a data set.

And this in a plot command, so that the y value dependence from the y
value in the line before and after the current line in a data set.

Can somebody gives a kick-off to me? I think/hope that I really need
only a starting point for this problem.

Jörg

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


Thread

if else with lines Jörg Buchholz <bookwood4new@freenet.de> - 2016-11-28 20:27 +0100
  Re: if else with lines Karl Ratzsch <mail.kfr@gmx.net> - 2016-11-28 21:58 +0100
    Re: if else with lines Jörg Buchholz <bookwood4new@freenet.de> - 2016-11-29 07:31 +0100

csiph-web