Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Develop an event detection algorithm that will automatically detect both the systolic and diastolic pressures in an arterial pressure time series using the event and
- Develop an event detection algorithm that will automatically detect both the systolic and diastolic pressures in an arterial pressure time series using the event and feature detection techniques discussed in class.
- The algorithm should make use of the pressure signals first and/or second derivative in addition to the pressure signal. For first and second derivative, make use of the equations in the lecture handouts (central difference for first derivative, and backward difference for second derivative). Provide a clear description of your algorithm.
- Implement your algorithm using C, and then evaluate your algorithm by analyzing the assigned pressure data.
column 1 of .txt file is time and column 2 is the pressure
- Your C program should:
- Prompt the user to enter the file name, check if file exists, and if so read in data from the file.
- Make use of the EXIT statement to terminate the program if the file does not exist, and EOF statement to test for an end-of-file condition on the file and to automatically determine the number of x or y data points in the file. Make use of dynamic memory allocation.
- For a given data file, write to an output file (with appropriate messages and units) the locations (times) and values (in mmHg) of detected systolic and diastolic pressures.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started