Skip to content

add_noise, get_drift_time, getA functions #8

@Luapulu

Description

@Luapulu

I have code for the following functions that may be worth merging in here (or perhaps in the legend DSP package)

add_noise

given some vector of noise and a signal, add noise to the signal. By default noise will be added starting at a random index in the noise vector. When the end of the noise vector is reached, it will wrap around to the start of the noise vector and keep adding until all of the signal has had noise added to it.

get_drift_time

get drift time of a signal, using a low and high threshold. I can also add relative thresholds, but haven't yet.

getA

gets the A value for A/E calculations form a signal. A two argument form also takes a time step, so that the maximum derivative of a signal is given, rather than the maximum difference.

Let me know if you're interested.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions