コード例 #1
0
        public void CalculateSignalConversionStats(List <Value> originalValues, List <Value> sampledSignalValues)
        {
            var originalValuesReal      = originalValues.Select(v => Tuple.Create(v.X.Real, v.Y.Real)).ToList();
            var sampledSignalValuesReal = sampledSignalValues.Select(v => Tuple.Create(v.X.Real, v.Y.Real)).ToList();

            Stats.MeanSquaredError = StatsCalculator.MeanSquaredError(originalValuesReal, sampledSignalValuesReal).ToString("0." + new string('#', 339));
            Stats.SignalNoiseRatio = StatsCalculator.SignalNoiseRatio(originalValuesReal, sampledSignalValuesReal).ToString("0." + new string('#', 339));
            Stats.MaxDifference    = StatsCalculator.MaxDifference(originalValuesReal, sampledSignalValuesReal).ToString("0." + new string('#', 339));
        }