sf.apps.similarity.sample_to_orbit

sample_to_orbit(sample)[source]

Provides the orbit corresponding to a given sample.

Example usage:

>>> sample = [1, 2, 0, 0, 1, 1, 0, 3]
>>> sample_to_orbit(sample)
[3, 2, 1, 1, 1]
Parameters

sample (list[int]) – a sample from GBS

Returns

the orbit of the sample

Return type

list[int]