creating a function for linear interpolation based on two changing states
Mostrar comentarios más antiguos
So I'm trying to add in linear interpolation into a fitness equation that has two information states. I was talking about it with my professor and he said I could make a function that combines the probability of the information states being between two integers multiplied by the fitness of being at those information states. So looking something like this:
j=2.3
k=4.5
%the function would be combining all possible combinations
%((there is also a physical state (x) and a time state for the fitness function))
p(j=2,k=4)*Ft(x,2,4,t)+
p(j=3,k=4)*Ft(x,3,4,t)+
p(j=2,k=5)*Ft(x,2,5,t)+
p(j=3,k=5)*Ft(x,3,5,t)
How would I create a function that would do this, but for any combination of numbers?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Interpolation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!