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

2 vues (au cours des 30 derniers jours)
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

Réponse acceptée

Mathieu NOE
Mathieu NOE le 28 Avr 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 commentaires
Bill Bozarth
Bill Bozarth le 28 Avr 2022
Thank you a bunch Mathieu! Perfect answer!
Mathieu NOE
Mathieu NOE le 29 Avr 2022
as always, my pleasure !

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Mathematics dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by