Statistics of fasts

I have the graphs working on the extended fasts. All is pretty much good and well to a point. I want to superimpose the condition(s) above the fast times. Bear in mind that what appears complex in this note, the complexity of the program, itself, is at least 30 times more complex.

To compare the fasting times to the condition times, for instance, I want to see when I'm losing weight compared to the fasts. Weight is the example here. What is done here will work with the thousands of conditions the members may have. That's a bit complex. The condition check may lie outside of the start and end of the fast. 

I can't ignore what is outside the fast, especially if no condition tests were done within the fasts themselves. I have to use the last or average of the weights before the fast. Also, if there is weight checks within the fasts, then I'll use an average of those.

When you're travelling through arrays of information, there's all kinds of gotchas that'll cause the system to go unresponsive. Since I'm still learning the PHP language, I think I seem to have found a way to cause all of the gotchas to raise their ugly head. And all the ways it won't work.

So I'm at the point where I have the weight dates that fit within the fast dates. Now I need to average them and create a point on the line graph that will fit just above the fast it represents. 

That means that every fast must have a weight result above it. If any are missing beyond the last fast date, then I'll need to keep adding to the list of results (the array, as its called in programming syntax) above the fast date. 

If all goes well, I'll recreate an array that has the exact same amount of entries as the fast array (list). That should be the big test.

Murphys law raises its ugly head around every corner. That's just part of the magic when it all works. Programming this sort of thing takes a lot of creativity and when it works, it's magical.

Pierre





Comments

Popular posts from this blog

Huge update

Condition Graphs