httomo.methods.calculate_stats

httomo.methods.calculate_stats#

httomo.methods.calculate_stats(data: ndarray) Tuple[float, float, float, int][source]#

Calculating the statistics of the given array

Parameters:

data – (np.ndarray): a numpy array

Returns:

(min, max, sum, total_elements)

Return type:

tuple[(float, float, float, int)]