private static void SetRawFilteredData(bool apply, List <GrowthMeasurement> raw, ref Culture culture) { if (!apply) { return; } var filteredRaw = Modules.Clone(raw); filteredRaw = Modules.ApplyMedianFiter(filteredRaw); culture.GrowthMeasurements.SetMeasurements(filteredRaw, DataType.RawFiltered); }