<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Le 04/02/2015 06:58, Jaime Fernández del Río a écrit :<br>
<blockquote
cite="mid:CAPOWHWmpsTe470bPBayACmOwkijV2aUZCXspJ8QmnfF3JyOZxA@mail.gmail.com"
type="cite">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div>I have an implementation of the Heaviside function as
numpy ufunc. Is there any interest in adding this to
numpy? The function is simply:<br>
<br>
<span style="font-family:monospace,monospace">
0 if x < 0<br>
heaviside(x) = 0.5 if x == 0<br>
1 if x > 0</span></div>
</div>
</blockquote>
<div><br>
</div>
<div>I don't think there's anything like it in numpy. Wouldn't
scipy.special be a better home for it?</div>
</blockquote>
scipy.signal could also host it, since it already contains functions
for linear systems (e.g. step response, which are closely related),
and also some waveform generators like square()<br>
<br>
<a class="moz-txt-link-freetext" href="http://docs.scipy.org/doc/scipy-0.14.0/reference/signal.html">http://docs.scipy.org/doc/scipy-0.14.0/reference/signal.html</a><br>
<br>
However, I agree with Joseph when he says that this function is a
bit thin.<br>
<br>
best,<br>
Pierre<br>
</body>
</html>