Update CreateMeasurements3.java to write measurements3.txt

Currently it overwrites measurements.txt which is a bit confusing.
This commit is contained in:
Ragnar Groot Koerkamp 2024-01-13 23:54:09 +01:00 committed by Gunnar Morling
parent 8c0693fdac
commit b56f2205c2

View File

@ -48,7 +48,7 @@ public class CreateMeasurements3 {
final var weatherStations = generateWeatherStations();
final var start = System.currentTimeMillis();
final var rnd = ThreadLocalRandom.current();
try (var out = new BufferedWriter(new FileWriter("measurements.txt"))) {
try (var out = new BufferedWriter(new FileWriter("measurements3.txt"))) {
for (int i = 1; i <= size; i++) {
var station = weatherStations.get(rnd.nextInt(KEYSET_SIZE));
double temp = rnd.nextGaussian(station.avgTemp, 7.0);