Beispiel #1
0
        public double GetP300(double[] channel) //p300선택
        {
            double[] src = new double[32];
            Array.Copy(channel, 32, src, 0, 32);

            PeakDetection peak = new PeakDetection(channel);

            var p300 = peak.GetValue();

            return(p300);
        }
Beispiel #2
0
        //Overloading GetP300
        public double GetP300(double[] src)                     // P300 ~ peak값
        {
            double[] dst = new double[38];
            Array.Copy(src, 38, dst, 0, 38);                // 38번(0.3초) 부터 26개(0.2초) 복사 (0.3 ~ 0.5초) - 비교할 값 보관//0.3~0.6초로 다시 바꿈

            PeakDetection peak = new PeakDetection();

            peak.Excute(dst);
            var p300 = peak.GetValue();

            return(p300);
        }
Beispiel #3
0
        //Overloading GetP300
        public double GetP300(List <double> src_list)               // P300 ~ peak값
        {
            double[] dst = new double[38];
            var      src = src_list.ToArray();

            Array.Copy(src, 38, dst, 0, 38);

            PeakDetection peak = new PeakDetection();

            peak.Excute(dst);
            var p300 = peak.GetValue();

            return(p300);
        }