<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 17, 2022 at 4:40 PM Kristofer Munsterhjelm <<a href="mailto:km_elmet@t-online.de">km_elmet@t-online.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">These if-then clauses may be difficult to put into mathematical<br>
expression form, but I found this (which may seem a bit ugly at first):<br>
        f(A) = g(H(fpA - fpC) * H(fpB-fpC) * A>B,<br>
                 H(fpA - fpB) * H(fpC-fpB) * A>C)<br>
<br>
where H is the step function H(x) = 1 if x > 0, 0 otherwise,</blockquote><div><br></div><div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small">Btw, if you want to make a plot of that, I recommend you replace the Heavyside function with one that is equal to 0.5 when x is exactly 0. Otherwise, when fpB == fpC you'll see f(A) suddenly crash to 0 for no apparent reason and you'll be left scratching your head.</div></div></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font face="trebuchet ms, sans-serif">Dr. Daniel Carrera</font></div><div dir="ltr"><font face="trebuchet ms, sans-serif">Postdoctoral Research Associate</font></div><div><font face="trebuchet ms, sans-serif">Iowa State University</font></div></div></div></div></div></div></div></div></div></div></div>