2.1.6.1.7. sf_tools.signal.positivity module¶
POSITIVITY
This module contains a function that retains only positive coefficients in an array
| Author: | Samuel Farrens <samuel.farrens@gmail.com> |
|---|---|
| Version: | 1.0 |
| Date: | 26/07/2017 |
-
sf_tools.signal.positivity.positive(data)[source]¶ Positivity operator
This method preserves only the positive coefficients of the input data, all negative coefficients are set to zero
Parameters: data (np.ndarray, list or tuple) – Input data array Returns: Return type: np.ndarray array with only positive coefficients