Question

Consider the databases (EEG signal data): EEG_Normal, and EEG_Seizure. Curve length. This equation is useful in predicting th

I just want the codes for visual basics for the curve length and the root mean square equation i provided above. This is for my visual basics class. Help!..........

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Below are the two functions where the calculations can be done

S1: To calculate the Curve Length the below function to be used.

Pass the Column arrays of each of the table and calculate

Function processMyArr(ParamArray MyTab() As Variant) As Integer
Dim N As Long
Dim curvLen As Integer
Dim resMod As Integer
For N = LBound(MyTab) To UBound(MyTab)
resMod = MyTab(N + 1) - MyTab(N)
curvLen = curvLen + resMod
Next N
processMyArr = finalStr
End Function

S2: To calculate the Root Mean Square velocity the following function to be used.

Function processRMS(ParamArray MyTab() As Variant) As Float
Dim N As Long
Dim curvLen As Float
For N = LBound(MyTab) To UBound(MyTab)
curvLen = curvLen + (MyTab(N) * MyTab(N))
Next N
Dim latRes As Float
latRes = curvLen / N
processMyArr = Sqr(latRes)
End Function

Add a comment
Know the answer?
Add Answer to:
I just want the codes for visual basics for the curve length and the root mean...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
Active Questions
ADVERTISEMENT