code: private static DoubleVector generateInitialVector(int length,
                                                        double mean,
                                                        double std) {
          DoubleVector vector = new DenseVector(length);
          for (int i = 0; i < length; ++i) {
              double v = RANDOM.nextGaussian();
              v = std * v + mean;
              vector.set(i, v);
          }
          return vector;
      }
docs: Generates a simple random vector.