std#
- bamengine.ops.std(a, axis=None, where=None)[source]#
Calculate standard deviation, optionally over axis or subset.
- Parameters:
- Returns:
Standard deviation (scalar if axis=None, array otherwise).
- Return type:
Examples
>>> import bamengine.ops as ops >>> prices = np.array([100, 110, 90, 100]) >>> price_std = ops.std(prices) >>> # price_std: ~7.07