| GNSS data to OSM format processor and track finder

- Main Page
- Packages
- Files

- Packages
- Package Functions

Functions | Variables
consequtive_repetitions Namespace Reference

Used to solve more complex forms of unwanted sequential repetitions. More...

## Functions
def | consequtive_repetitions (in_list, expected_range=15)
| Function solves a problem of repeating the same items in a list. More...

## Variables
list | in_list
| Tryout. More...
| out_list = consequtive_repetitions(in_list, 4)

## Detailed Description

Used to solve more complex forms of unwanted sequential repetitions.

## Function Documentation

## ◆ consequtive_repetitions()

def consequtive_repetitions.consequtive_repetitions | ( |  | in_list,
|  |  | expected_range = `15`
| ) |  |

Function solves a problem of repeating the same items in a list.

The repetition is understood as more numbers repeating in certain range. As an output, functions returns a list where those repetitive items are excluded. Take a look at "Tryout" at the end of this module to understand functionality.

Parameters

  expected_range | determines how big this range, in which we want to ignore any duplicates, is (default 15)

Examples

in_list: [1,1,1,9,9,2,3,4,4]
out_list: [1,9,2,3,4]

## Variable Documentation

## ◆ in_list

list in_list

Initial value:
1 = [
2 1,2,3,4,5,6,7,8,9,
3 8,9,8,9,8,9,8,9,8,9,
4 10,11,12,13,14,15,16,17,18,19
5 ]

Tryout.

## ◆ out_list

out_list = consequtive_repetitions(in_list, 4)