Skip to content

Instantly share code, notes, and snippets.

@trevphil
Last active June 3, 2019 12:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trevphil/fd8c2d57c5d32063095d4fba7785a706 to your computer and use it in GitHub Desktop.
Save trevphil/fd8c2d57c5d32063095d4fba7785a706 to your computer and use it in GitHub Desktop.
Scenario Struct
struct Scenario {
/// A sequence of CLLocations representing the "true path" of the GPS track
let truePath: [CLLocation]
/// A sequence of CLLocations based on the true path, but with noise added to various parameters
let noisyPath: [CLLocation]
/// A number between 0.0-1.0 representing the minimum allowable percentage difference between
/// the distance of the true path, and the distance of the noisy path after GPS filtering.
/// This percentage is relative to the distance of the true path.
let minAllowableError: Double
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment