heartbeats
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
heartbeats [2010/05/28 23:45] – Missing paranthesis jochen | heartbeats [2010/06/14 23:33] – updated the help jochen | ||
---|---|---|---|
Line 29: | Line 29: | ||
| | ||
| | ||
+ | | ||
| | ||
| | ||
| | ||
+ | | ||
| | ||
Line 110: | Line 112: | ||
Naturally, it is possible to script this function, save the pre-detected heartbeats (without manual interaction/ | Naturally, it is possible to script this function, save the pre-detected heartbeats (without manual interaction/ | ||
+ | For instance, if the raw signal looks like this | ||
+ | |||
+ | {{: | ||
+ | |||
+ | A two-pass detection scheme can be employed: | ||
+ | |||
+ | <code matlab heartbeats_crisp_detection.m> | ||
+ | data = xff(' | ||
+ | |||
+ | % then z-transform the third column (in our case) and take the 4th power | ||
+ | pdata = ztrans(data.Data(:, | ||
+ | |||
+ | % pre-detect beats | ||
+ | % since we used the 4th power, the skew detection threshold must be lowered | ||
+ | % and our signal has short spikes, so the detection length threshold also! | ||
+ | bp = heartbeats(pdata, | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | |||
+ | % then pass this along with the actual signal back in | ||
+ | [bp, bs, bf, bv, cp, wgd, wd] = heartbeats(data.Data(:, | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' |
heartbeats.txt · Last modified: 2010/06/29 17:17 by jochen