Esempio n. 1
0
 private void GenerateData()
 {
     InputData   = new int[MySimulationData.FrameLength];
     OutcomeData = new int[MySimulationData.FrameLength];
     RealData    = new double[MySimulationData.FrameLength];
     ImagData    = new double[MySimulationData.FrameLength];
     RollEngine.RollSymbols(InputData, MaxValue);
 }
Esempio n. 2
0
 public void Simulate()
 {
     while (MySimulationData.BitsLost < 100)
     {
         GenerateData();
         int[] _tempInputData = new int[MySimulationData.FrameLength]; InputData.CopyTo(_tempInputData, 0);
         RunTransmitter(_tempInputData, MySimulationData.FrameLength, RealData, ImagData, MySimulationData.CodingMode.Index, MySimulationData.ModulationMode.Index);
         RollEngine.RollNoise(RealData, ImagData, MySimulationData.SNR);
         RunReceiver(OutcomeData, MySimulationData.FrameLength, RealData, ImagData, MySimulationData.DecisionDepth, MySimulationData.CodingMode.Index, MySimulationData.ModulationMode.Index);
         UpdateData();
     }
 }