public static Vector2 RoughnessStats(Biome[] biomes) { float[] roughness = new float[biomes.Length]; for (int a = 0; a < biomes.Length; a++) { roughness[a] = biomes[a].Roughness; } return new Vector2(roughness.Average(), roughness.Std()); }
public static float MeanElevation(Biome[] biomes) { float[] elevation = new float[biomes.Length]; for (int a = 0; a < biomes.Length; a++) { elevation[a] = biomes[a].Elevation; } return elevation.Average(); }
public static float MeanRoughness(Biome[] biomes) { float[] roughness = new float[biomes.Length]; for (int a = 0; a < biomes.Length; a++) { roughness[a] = biomes[a].Roughness; } return roughness.Average(); }
public static Vector2 ElevationStats(Biome[] biomes) { float[] elevation = new float[biomes.Length]; for (int a = 0; a < biomes.Length; a++) { elevation[a] = biomes[a].Elevation; } return new Vector2(elevation.Average(), elevation.Std()); }