public Sample<float>[] FilterData(Sample<float>[] data) { float[] values = FilterData(data.Select(x => x.Value).ToArray()); return data.Zip(values, (x, y) => new Sample<float>(x.Time, y)).ToArray(); }