Skip to content

Instantly share code, notes, and snippets.

@DimensionalScoop
Created February 6, 2016 09:35
Show Gist options
  • Save DimensionalScoop/188636a9e16866f3fcd1 to your computer and use it in GitHub Desktop.
Save DimensionalScoop/188636a9e16866f3fcd1 to your computer and use it in GitHub Desktop.
import numpy as np
def calc_std_dev_oszilloskop(werte):
"""Generiert Standardabweichungen für mit dem Oszilloskop gemessene Werte.
Args:
werte (array): Messwerte.
Returns:
uarray: Messwerte mit Fehler
"""
nominal = werte
magnitude = np.floor(np.log10(nominal))
error = [0.05 * 10**mag for mag in magnitude]
return uarray(nominal, error)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment