Math Moron here in need of a function to simulate a degrading curve over time.

2 views (last 30 days)
Bill Bozarth
Bill Bozarth on 28 Apr 2022
Commented: Mathieu NOE on 29 Apr 2022
I am trying to find a function to simulate the curve found in this arbitrary data. The use case is bringing a score to zero over a given time similar to the positive side of a normal distribution. I am hoping for two variables, increments of time and score, that at a given time the calculation could be made and the new degraded, lower, score would be returned. I have tried hard to make the guassian distribution probability function work but if it can I just don't have the chops to figure it out. I went down some other rabbit holes including degredation kinetics equations, parametric degredation, and learned that the Taylor series is really cool but not able to help me. All of which are out of my depth.
Here is the curve I am trying to find a function for.
I could not figure out how to make a table in this UI so I am providing a link to a google sheet. The data is arbitrary but approximates the curve I am looking for.
I admittedly suffer from such a low understanding of higher math that I don't even know the best terms to research. I appreciate any help or even direction towards help that can be offered.
Thank you for your time,
Bill

Accepted Answer

Mathieu NOE
Mathieu NOE on 28 Apr 2022
hello
maybe this ? (the idea behind is a sigmoid)
samples = 100;
c = samples/2; % center of the curve (c corresponds to the x value where y = 0.5)
x = (0:samples-1)';
a = 0.15; % define how sharp is the transition
y = 1 - 1./(1 + exp(-a.*(x-c)));
plot(x,y);
  4 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!