Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Signal processing and pattern analysis

Status
Not open for further replies.

Roderich

Programmer
Sep 11, 2001
58
DE
hi there,

I want to develop a function which gives me the "distance" between 2 vectors, i.e. the closer the two vectors are, the smaller the distance.
I need this function to recognize a similar pattern in another signal.

Anyone got a hint or maybe even Delphi source ?

best regards
Roderich
 
The distance between 2 vectors? Distance can be measusured between points.
If you are familiar with complex numbers, you can implement it like an object (class).
The source for complex numbers can be found at:

www.delphi3000.com category: scientific, Article: Implementing a complex number object

Regards Steven van Els
SAvanEls@cq-link.sr
 
No, no, don't want to deal with complex numbers. :p

I meant a kind of distance function between two vectors which at the moment I implemented as the sum of the individual factors, i.e. cross correlated.

Jut wanted to know if there is anything better than cross correlation because the best value represents not always the correct corresponding position of the second vector.

best regards
Rod
 
Make a vector object, by the way a complex number is a two dimensional vector. In the object implement vectorial functions, inverse etc.. Steven van Els
SAvanEls@cq-link.sr
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top