change version

This commit is contained in:
Lorenzo 2021-03-22 10:05:00 +01:00
parent 34fa7a5933
commit 3b97afb89e
3 changed files with 5 additions and 27 deletions

View File

@ -1,4 +1,6 @@
"""Open implementation of MonoLoco++ / MonStereo."""
"""
Open implementation of MonoLoco / MonoLoco++ / MonStereo
"""
__version__ = '0.2.3'
__version__ = '0.5.0'

View File

@ -1,24 +0,0 @@
'''
String of binary digits of length n,
can we find out the probability that are at least 2 consequtive ones
2 --> (1,1) out of 4 possibilities
3 --> (0, 1, 1), (1, 1, 0) , (1,1,1)
4 --> (0, 1, 1, 1) (1, 1, 1,1) (1,1, 0, 0)...
'''
n = 8
def generate_strings(length):
"""
(0, 0, 0), (1, 0, 0), (1, 0, 1)
"""
def is_there_a_one(string):
for idx, el in enumerate(string[:-1]):
if el == 0:
continue
if string[idx+1] == 1:
return 1
return 0