Esempio n. 1
0
        private HrvResults ProcessFile(string filename, bool bPerformRejection)
        {
            var ps = new ProcessingSettings {
                RejectUsingMinMaxNNTime    = bPerformRejection,
                RejectUsingRelativeNNDelta = bPerformRejection
            };

            return(HrvFileProcessingHelper.ProcessFileWithSettings(filename, ps));
        }
Esempio n. 2
0
        private HrvResults ProcessFile(string filename, bool bPerformRejection, bool RejectLowQualitySignalAreas)
        {
            filename = PskOnline.Components.Util.FileHelpers.GetPathFromExecutingAssembly(
                Path.Combine("unit_test_data", Path.Combine("LowQualityStart", filename)));

            var ps = new ProcessingSettings
            {
                RejectUsingMinMaxNNTime    = bPerformRejection,
                RejectUsingRelativeNNDelta = bPerformRejection,
                // special setting for RusHydro
                // will remove initial 12 seconds of recorded signal
                // because it is mostly of some poor quality
                RejectLowQualitySignalAreas = RejectLowQualitySignalAreas
            };

            return(HrvFileProcessingHelper.ProcessFileWithSettings(filename, ps));
        }