public Result AbsoluteResult() { var absCorr = Correlations.Select(Math.Abs).ToList(); return(new Result() { Correlations = absCorr.ToArray(), MaxIndex = absCorr.IndexOf(absCorr.Max()) }); }
private async Task DoCalcCorrelations(object o) { Correlations.Clear(); foreach (var sample in Samples) { Correlations.Add(new CorrelateVm(MainSample, sample)); } await Task.WhenAll(Correlations.Select(c => c.CalculateCorrelationAsync())); }