SAMPLE_TEAM.Soccer.utility

Module provides some utilities which can run with same result and same synatx both in Micropython of OpenMV and in standard CPython

Module Contents

Functions

randrange(start, stop=None)

helper function for working with random bit sequence

random()

getting a random number from 0 to 1

gauss(mu, sigma)

#getting a random number from Gaussian distribution

gaussian(x, sigma)

# calculates the probability of x for 1-dim Gaussian with mean mu and var. sigma

Attributes

used_with_OpenMV

SAMPLE_TEAM.Soccer.utility.used_with_OpenMV = True[source]
SAMPLE_TEAM.Soccer.utility.randrange(start, stop=None)[source]

helper function for working with random bit sequence

SAMPLE_TEAM.Soccer.utility.random()[source]

getting a random number from 0 to 1

SAMPLE_TEAM.Soccer.utility.gauss(mu, sigma)[source]

#getting a random number from Gaussian distribution

SAMPLE_TEAM.Soccer.utility.gaussian(x, sigma)[source]

# calculates the probability of x for 1-dim Gaussian with mean mu and var. sigma