:py:mod:`anomalib.post_processing.normalization.cdf` ==================================================== .. py:module:: anomalib.post_processing.normalization.cdf .. autoapi-nested-parse:: Tools for CDF normalization. Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: anomalib.post_processing.normalization.cdf.standardize anomalib.post_processing.normalization.cdf.normalize anomalib.post_processing.normalization.cdf.normalize_torch anomalib.post_processing.normalization.cdf.normalize_numpy .. py:function:: standardize(targets: Union[numpy.ndarray, torch.Tensor], mean: Union[numpy.ndarray, torch.Tensor, float], std: Union[numpy.ndarray, torch.Tensor, float], center_at: Optional[float] = None) -> Union[numpy.ndarray, torch.Tensor] Standardize the targets to the z-domain. .. py:function:: normalize(targets: Union[numpy.ndarray, torch.Tensor], threshold: Union[numpy.ndarray, torch.Tensor, float]) -> Union[numpy.ndarray, torch.Tensor] Normalize the targets by using the cumulative density function. .. py:function:: normalize_torch(targets: torch.Tensor, threshold: torch.Tensor) -> torch.Tensor Normalize the targets by using the cumulative density function, PyTorch version. .. py:function:: normalize_numpy(targets: numpy.ndarray, threshold: Union[numpy.ndarray, float]) -> numpy.ndarray Normalize the targets by using the cumulative density function, Numpy version.