Z-score the input data vector.
This function standardizes the input array by removing the mean and scaling to unit variance.
It performs the z-scoring operation twice to reduce numerical error, as recommended for
high-precision applications.
- Parameters:
- x : array-like
Input data vector (1D array or list of numbers).
- Returns:
The z-scored version of the input data.
- Return type:
np.ndarray