Пример #1
0
        public void Receive(object sender, Sender.SendMessageArgs args)
        {
            var spots    = args.Spots;
            var function = args.Function;

            var(a, b, c) = _solver.Solve(spots, function);

            var lambdaFunction = new FunctionDeterminant().GetFunction(function);

            var receivedMessage = spots.Select(spot => lambdaFunction(spot.X, a, b, c))
                                  .ToList();

            _recorder.RecordReceivedMessage(receivedMessage);
            _recorder.RecordParameters(a, b, c);
        }