TVectorT average or length operator


I’m trying to figure out a way to obtain the average of a stored TVectorD. I thoroughly looked at the documentation, but it seems like there is no average operator implemented. Instead, I tried to employ .Sum() operator and divide by the number of elements in the TVectorD, but I couldn’t find the operator that gives me the size of a TVectorD. I’d assume I’m having trouble finding the right syntax since it’s hard to believe that the size operator is not implemented. Could anyone please help me with this issue?

Thank you so much in advance.


See TVectorT::GetNoElements() and TVectorT::GetNoElements()

Cheers, Bertrand.

Works great. Thank you so much!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.