mattmc wrote in message news:<506500000008000000D9790000-1042324653000@exchange.ni.com>...
> I have been using the particle analysis function to establish the
> centre of mass of some particles. However on analysis some of the
> stated CofG's are clearly wrong. Does anybody know why this could be
> or how you can access the code that performs the calcution to check
> it?
Hi,
I don't think you can access the code that performs the calculation,
because that is NI's DLL, unless they let you see the source C/C++
code. But I know one algorithm to get the mass center is using the
moments calculation,
m(p,q)=double integral over x^py^qf(x,y)dxdy, and the mass center is:
Xc=m(1,0)/m(0,0), Yc=m(0,1)/m(0,0)
As a matter fact, you can see m(0,0) is actually the area
size of the
particle.
Irene
www.geocities.com/irene_he