algorithm of minimum zone method

Status
Not open for further replies.

Longmcx

Junior Member level 1
Joined
Sep 28, 2004
Messages
19
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
147
Hi everybody, i have a project for measurement straightness, but to evaluate straightness i need algorithm of minimum zone. please help me.
thanks for your attention.
 

Hello,

I think you need first to BubbleSort your data, that if your data is finite not streaming. Then the difference of the values between ends of your sorted data is your Distance between maximum and minimum peaks of your waveform.

Hope this help
 

Thanks for your help, but i don't understand, please explain more clearly. Thank you very much.
 

I pressumed your data will be in an array structure or in a linked list. Then you Bubble Sort it. Bubble sorting is a standard algorithm in sorting data arrays. Just like a lighter bubbles will float upwards and heavier bubbles will sink downs wards. The same is true in your data. The smallest magnitude data will float to the first index of your data structure and your highest magnitue data will sink to the last index of you data structure. Then you simply take the magnitude difference between your first and last data then you get your minimum Distance.
 

Sorting is unnecessary as the order is not important. He only needs a maximum and a minimum and, therefore, he'll have D=maximum-minimum.

In discrete case, the algorithm is much simpler.
In continuous case, take derivatives.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…