Mixing Functions
Functions to combine ingredients.
- mix_functions.add(y1, y2)
Function to do addtion to ingredients.
- Parameters
y1 (
array) – numpy vector. The current ingredient.y2 (
array) – numpy vector. The new ingredient.
- Returns
y1 + y2.
- Return type
array
- mix_functions.convolve(y1, y2)
Function to do concolution to ingredients.
- Parameters
y1 (
array) – numpy vector. The current ingredient.y2 (
array) – numpy vector. The new ingredient.
- Returns
convolution of y1 and y2, using “same” method in np.convolve.
- Return type
array
- mix_functions.divide(y1, y2)
Function to do division to ingredients.
- Parameters
y1 (
array) – numpy vector. The current ingredient.y2 (
array) – numpy vector. The new ingredient.
- Returns
y1 / y2
- Return type
array
- mix_functions.multiply(y1, y2)
Function to do mulplication to ingredients.
- Parameters
y1 (
array) – numpy vector. The current ingredient.y2 (
array) – numpy vector. The new ingredient.
- Returns
y1 * y2
- Return type
array
- mix_functions.subtract(y1, y2)
Function to do subtraction to ingredients.
- Parameters
y1 (
array) – numpy vector. The current ingredient.y2 (
array) – numpy vector. The new ingredient.
- Returns
y1 - y2
- Return type
array