💡 Looking to correlate two 1D arrays (signals, time series, depth series, whatever)? You have lots of options...
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
def weights(z, x, m=0): | |
""" | |
Fornberg finite difference weights. | |
F90: https://github.com/bjodah/finitediff/blob/master/src/finitediff_fort.f90 | |
Made this for Advent of Code 2023, Day 9. See: | |
https://colab.research.google.com/drive/1jKImD3-LWfQsAtrjaAsyK38wHwOsXX62 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def has_illegal_chars(string: str, illegal: str = ',;"!+=') -> bool: | |
""" | |
Detect the presence of illegal characters in a string. | |
By default, illegal characters are: `,;"!+=` | |
Args: | |
string: A string of text of any length. | |
illegal: A sequence of characters that are not allowed. | |
Returns: |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder