simulationPattern.simulatePatternFullPattern(// Is it the most time-consuming part? should it be done once and then only extraction separate?
double[]barray=simulationPattern.simulatePatternFullPatternSafe(// Is it the most time-consuming part? should it be done once and then only extraction separate?