
Originally Posted by
lonedesi
Hello everyone,
I'm new to this forum and I have an issue that I could use some help me. I have written a tiny function to calculate area between two curves.
I have 3-d, cartesian (x,y,z) data from a person performing a movement which is being recorded by IR-cameras.
Now, the function takes in 3 arrays from two separate files(actual data and projected data) namely their x,y and z co-ordinates and then calculates area between two curves separately for the XY plane (think side view) and XZ plane (think top view).
The first curve is data collected from the person. The second curve is data projected by a model.
I need to know how to normalize the output from the function. Since the data starts and stops at different co-ordinates the output area is meaningless until it can be normalized.
Attached is the code. it is quite simple. Im using "cumtrapz".