I need to design a function with an specific shape. I cannot come up with some equation that fits the kind of function that I am looking for.
My requirements are:
The function is defined from 0 to N, where N is a natural number (it is a sample).after N, the signal returns 0.
the signal has a plateau or maximum where the signal starts. After some time, the amplitude decays rapidly until it touches the bottom (zero).
we can control the speed of decay by a coefficient k, that allows the function to be reduced more or less rapidly.
Here is an example of something similar but I am looking for a mirrored version:
What kind of function could fit these features?
Thanks!