jvector
jvector copied to clipboard
How about add a mean method like the one of sum(List<VectorFloat>)?
I found sum in VectorUtil but no mean :
public static VectorFloat<?> sum(List<VectorFloat<?>> vectors)
Sometimes, we may need to calculate the mean of vectors,let's say, when add RaBitQ quantization? 🤪
Why not just divide the result by vectors.size()?
I mean it's common operation in vector manipulation, so encapsulating a mean util method will be helpful ;)
You can use this method.