Source code for mlreflect.xrrloader.footprint.normalization

import numpy as np
from numpy import ndarray


[docs]def normalize_to_max(intensity: ndarray): return intensity / np.max(intensity)
[docs]def normalize_to_first(intensity: ndarray): return intensity / intensity[0]