So, the pseudocode for a piece of software I'm writing looks like:
================================================== =======
for (removalRate = minVal; removalRate <= maxVal; removalRate + removalRateStep) {
// DOSTUFF (run a model which determines a value based on removal rate, and output results to a file)
}
================================================== =======
The problem is, there are an indeterminate number of groups that this needs to be done for, each with their own minVal, maxVal, and removalRateStep variables.
For example, the user could have groups like this:
A: minVal = 0, maxVal = 1.0, removalRateStep = 0.1
B: minVal = 0.3, maxVal = 0.4, removalRateStep = 0.025
C: minVal = 0.1, maxVal = 0.8, removalRateStep = 0.05
and so on, with the number of groups unknown to the program except at runtime.
Thoughts on how to do this would be greatly appreciated!