Ricky and Northwestern had a situation where his demographics had an AgeDistribution where the DistributionValues and ResultValues where nested arrays. For example:
Things can work correctly with the nested arrays but you must have the same number of elements for ResultValues and DistributionValues. However, as in the example above, Ricky did not and the checks to for this were fooled by the nested arrays to think that each parameter had one value. This resulted in random behavior because arrays were being indexed out of the arrays memory.
Solution: Add a check so that you can not have nested arrays.
Ricky and Northwestern had a situation where his demographics had an AgeDistribution where the DistributionValues and ResultValues where nested arrays. For example:
Things can work correctly with the nested arrays but you must have the same number of elements for ResultValues and DistributionValues. However, as in the example above, Ricky did not and the checks to for this were fooled by the nested arrays to think that each parameter had one value. This resulted in random behavior because arrays were being indexed out of the arrays memory.
Solution: Add a check so that you can not have nested arrays.