Skip to content

Instantly share code, notes, and snippets.

@Tobias-K93
Tobias-K93 / helpers.py
Last active November 16, 2022 16:01
APA interactive plots
import numpy as np
def standardize(gamma, upper_val = 0.3, lower_val = 0.1):
s = (gamma-np.min(gamma))/(np.max(gamma)-np.min(gamma))
out = s * (upper_val - lower_val) + lower_val
return out
def is_pos_def(x):