probabilities[inputStructureDist % 2 ? 2 * i + 1 : 2 * i] = solutions[i].real() > 0 ? solutions[i].real() : 0;