コード例 #1
0
ファイル: data_filter.cs プロジェクト: neuroidss/brainflow
        /// <summary>
        /// perform windowing
        /// </summary>
        /// <param name="window_function">window function</param>
        /// <param name="window_len">len of the window</param>
        /// <returns>array of the size specified in window_len</returns>
        public static double[] get_window(int window_function, int window_len)
        {
            double[] window_data = new double[window_len];
            int      res         = DataHandlerLibrary.get_window(window_function, window_len, window_data);

            if (res != (int)CustomExitCodes.STATUS_OK)
            {
                throw new BrainFlowException(res);
            }
            return(window_data);
        }