Calculating statistics on samples

I need to calculate come statistics on the samples that I can see in the
scope of GNU Radio Companion.

I am able to see the graph, but I need to calculate statistics on the

I am thinking about using a sink_vector instead of the scope, but I
don’t know how to get the samples from the vector to do the

Is there any suggestion?

Any help is really appreciated.