Skip to content
Snippets Groups Projects
Commit 729b3270 authored by mads's avatar mads
Browse files

docs bugfix

parent f895a78e
No related branches found
No related tags found
No related merge requests found
from wetb.utils.cython_compile.cython_compile import cython_import
cython_import('pair_range')
cython_import('peak_trough')
cython_import('rainflowcount_astm')
......@@ -48,8 +48,8 @@ def rainflow_windap(signal, levels=255., thresshold=(255 / 50)):
Mean values of the half cycles
Example
-------
Examples
--------
>>> signal = np.array([-2.0, 0.0, 1.0, 0.0, -3.0, 0.0, 5.0, 0.0, -1.0, 0.0, 3.0, 0.0, -4.0, 0.0, 4.0, 0.0, -2.0])
>>> ampl, mean = rainflow_windap(signal)
"""
......
import numpy as np
def rfc_hist(sig_rf, nrbins=46):
"""
Histogram of rainflow counted cycles
====================================
"""Histogram of rainflow counted cycles
hist, bin_edges, bin_avg = rfc_hist(sig, nrbins=46)
......@@ -46,4 +44,4 @@ def rfc_hist(sig_rf, nrbins=46):
# since the sum is also 0, the avg remains zero for those whos hist is zero
bin_avg = hist_sum / hist_
return hist, bin_edges, bin_avg
\ No newline at end of file
return hist, bin_edges, bin_avg
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment