Trapezoidal Integral of Discrete Values

  • Context: Undergrad 
  • Thread starter Thread starter trustnoone
  • Start date Start date
  • Tags Tags
    Discrete Integral
Click For Summary
SUMMARY

The discussion focuses on using trapezoidal integration to process accelerometer values sampled at 25 Hz. The equation provided, y(n) = y(n-1) + (1/(2fs))*(x(n-1)+x(n)), is confirmed to be applicable for integrating discrete values. The user seeks clarification on the correct implementation of the equation, particularly regarding the terms y(n-1) and x(n). The integration process involves sequentially adding the results of each sample to compute the cumulative integral.

PREREQUISITES
  • Understanding of trapezoidal integration
  • Familiarity with discrete signal processing
  • Knowledge of accelerometer data sampling
  • Basic mathematical skills for implementing integration equations
NEXT STEPS
  • Study the principles of trapezoidal integration in detail
  • Learn about discrete signal processing techniques
  • Explore accelerometer data analysis methods
  • Review mathematical derivations of integration equations
USEFUL FOR

Engineers, data scientists, and researchers working with sensor data, particularly those involved in signal processing and integration of discrete measurements.

trustnoone
Messages
17
Reaction score
0
Hi guys, so I'm trying to create this thing that gets accelerometer values and integrate those values at about 25 samples a second. From what I understand if I integrate the values, that means each second I have 25 values I want to integrate. I read this research paper where someone used the trapezoidal integration to do it but I've been trying to read up on it and I guess I'm having some problems. Firstly can I use the trapezoidal integration to do it?

Secondly this is the equation they used:
y(n) = y(n-1) + (1/(2fs))*(x(x-1)+x(n)) , where n>0

so I guess fs is my sampling frequency which would be 25 and x is my integrand. I would assume n is my value so 1 or 2 or 3rd sample but I'm worried about y(n-1) and the x(n) part since the start of the equation is y(n).

Basically if say my values were
Fs=25
n=1
x= 32

then is it right to say
y(n) = y(1-1) + (1/(2*25))*(32(32-1)+32(1))
or is the y(n-1) similar to the y(n) part and I have to sort of work out the integration together?

Also with my second sample do I just add it to my first? Apologies about this, my maths isn't the best.
Lastly is the equation I wrote make sense? I tried looking up similar trapezoidal equations and the look similar to me.
 
Physics news on Phys.org
You should describe what you are trying to calculate. Also your description has several typos, which should be fixed for clarity.
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 17 ·
Replies
17
Views
4K
  • · Replies 31 ·
2
Replies
31
Views
5K