def _compute_normalization_statistics(self, grouped_features: dict[str, Tensor]) -> None:
        """Compute min-max normalization statistics while taking the group into account.

        Args:
            grouped_features (dict[str, Tensor]): Dictionary mapping group names to
                feature tensors.
        """
        for group, features in grouped_features.items():
            distances = self.predict(features, group, normalize=False)
            self.min = torch.min(self.min, torch.min(distances))
            self.max = torch.max(self.min, torch.max(distances))
Compute min-max normalization statistics while taking the group into account.

        Args:
            grouped_features (dict[str, Tensor]): Dictionary mapping group names to
                feature tensors.
        
src/anomalib/models/video/ai_vad/density.py