Skip to content

SP5 DataGenerator: RandomWalk() needs slope argument #2763

@swharden

Description

@swharden

RandomWalk() needs slope argument (default 0)

public double[] RandomWalk(int count, double mult = 1, double offset = 0)
{
double[] data = new double[count];
data[0] = offset;
for (int i = 1; i < data.Length; i++)
data[i] = data[i - 1] + (Rand.NextDouble() * 2 - 1) * mult;
return data;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First IssueThis issue has limited complexity and may be a good start for new contributorsHelp WantedScott won't do this soon, but PRs from the community are welcome!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions