## Is there any heartbeat like function? [closed]

I'm looking for a function, where the result is something like this:

image

I tried to figure it out myself, but I have no idea how to manage it. f(x) = ...

-
The heart beat function for a dead guy is defined by $f(x)=0.$ – Joseph Van Name Jan 19 at 0:02

## closed as off topic by Steven Landsburg, Will Sawin, Chris Godsil, Noah Stein, Dan PetersenJan 18 at 17:38

A silly answer would be "fit a spline to your curve", but the meaningful answer tries to extract information on the condition of the heart from the characteristic features of the electrocardiogram; there is an extensive literature on this problem, see for example:

-