private void initialParticles() {
        double initialWeight;
        double valueStep, value;

        valueStep = (initialPValMax - initialPValMin) / particleCount;
        value = initialPValMin;
        particles = new double[2][particleCount];
        initialWeight = ((double) 1.0 / particleCount);

        for (int i = 0; i < particleCount; i++) {
            particles[0][i] = initialWeight;
            particles[1][i] = value;
            value += valueStep;
        }
    }