コード例 #1
0
            public Result AbsoluteResult()
            {
                var absCorr = Correlations.Select(Math.Abs).ToList();

                return(new Result()
                {
                    Correlations = absCorr.ToArray(),
                    MaxIndex = absCorr.IndexOf(absCorr.Max())
                });
            }
コード例 #2
0
        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()));
        }