Jump to content

Getting the mean or average in vops.


Recommended Posts

So I want to compute the average of an attribute for all the points in each group.

Right now I am doing...

-ForEach group

-inside is a vopsop with pcopen and pcfilter that filters the attribute

This does a decent job at averaging the values together, but I want a perfect average. ((m + m1 + ... mN-1 + mN) / N)

I was going to use python, but I'd rather find out how to do this with vops.

Should look something like this:

pt beans beans_avg
0  100   250
1  200   250
2  300   250
3  400   250

Thanks for the help!

Edited by mightcouldb1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...