MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / _mean

Method _mean

monai/transforms/intensity/array.py:875–879  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

873
874 @staticmethod
875 def _mean(x):
876 if isinstance(x, np.ndarray):
877 return np.mean(x)
878 x = torch.mean(x.float())
879 return x.item() if x.numel() == 1 else x
880
881 @staticmethod
882 def _std(x):

Callers 1

_normalizeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected