-
Notifications
You must be signed in to change notification settings - Fork 981
Closed
Labels
Good First IssueThis issue has limited complexity and may be a good start for new contributorsThis 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!Scott won't do this soon, but PRs from the community are welcome!
Description
RandomWalk() needs slope argument (default 0)
ScottPlot/src/ScottPlot5/ScottPlot5/RandomDataGenerator.cs
Lines 51 to 58 in 1a4568c
| 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; | |
| } |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Good First IssueThis issue has limited complexity and may be a good start for new contributorsThis 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!Scott won't do this soon, but PRs from the community are welcome!