Exemple #1
0
        public PointPairList[] GetDiagramOfTransformation(CharacteristoOfTransformationParametrs parametrs, out Dictionary <int, int[]> regTrack)
        {
            reg.SetPolinomNull();

            parametrs.signalSource.Reset();
            currentSignal = 0.0;
            index         = 0;

            PointPairList signalGraph = new PointPairList();
            PointPairList adcRes      = new PointPairList();

            regTrack = new Dictionary <int, int[]>();

            double AdcDmax = this.reg.GetDmax();

            for (int i = 0; i < parametrs.time && AdcDmax > currentSignal; i++)
            {
                currentSignal = parametrs.signalSource.NextValue();
                //Console.WriteLine(currentSignal);
                signalGraph.Add(index, currentSignal);
                TrackingSignal(adcRes, parametrs.beatTime);
                regTrack.Add(index, this.reg.polinom.Clone() as int[]);
            }
            return(new PointPairList[] { signalGraph, adcRes });
        }
Exemple #2
0
        public PointPairList[] GetDiagramOfTransformationGKS(CharacteristoOfTransformationParametrs parametrs, out Dictionary <int, double> regTrack)
        {
            reg.SetPolinomNull();
            currentSignal = 0;
            index         = 0;

            PointPairList signalGraph = new PointPairList();

            regTrack = new Dictionary <int, double>();

            double dMax = this.reg.GetDmax();

            for (int i = 0; i < parametrs.time && dMax > currentSignal; i++)
            {
                this.reg.AddOne();
                currentSignal = this.dac.Convert(reg);
                signalGraph.Add(i, currentSignal);
                regTrack.Add(i, currentSignal);
            }
            return(new PointPairList[] { signalGraph, signalGraph });
        }