<jupyter_start><jupyter_text>Example of Single Session Data<jupyter_code>beacon_data, position_data = base.read_data('../../Data/Raw/', '20200206-125706')
data = base.BeaconPosition('../../Data/Raw/', '20200206-125706')
data.statistics
plt.hist(data.speed, bins = np.linspace(0, 50, 10))
plt.xlabel('Speed (cm/min)')
plt.ylabel('# of time bin')
plt.title('Speed distribution')
print(f'total travel distance: {data.travel_distance[-1]} m')<jupyter_output>total travel distance: 254.63314505628495 m<jupyter_text>Example of multiple sessions<jupyter_code>tags1 = ['20190923-174441', '20191001-112411', '20191002-115000', \
        '20191106-170809', '20191107-183857', '20191108-145125', \
       '20191118-161325', '20191127-122008']
tags2 = ['20190923-171112', '20191001-115127', '20191002-111038',\
         '20191107-174215', '20191108-142321', '20191118-171209',\
         '20191127-132223']
rat_fs1 = base.MultiDaysBeaconPosition('../../Data/Raw/', tags1, has_beacon = False)
rat_fs2 = base.MultiDaysBeaconPosition('../../Data/Raw/', tags2, has_beacon = False)
rat_fs1.multisession_statistics
rat_fs2.multisession_statistics
rat_fs1.individual_statistics
rat_fs2.individual_statistics
plt.plot(rat_fs1.distance_per_session, '-o', label = 'fs1')
plt.plot(rat_fs2.distance_per_session, '-o', label = 'fs2')
plt.xlabel('Session No.')
plt.ylabel('m')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.17246376811594202, 'fraction_numerical': 0.19927536231884058, 'mean_word_length': 5.736585365853658, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '565484', 'license': 'Apache-2.0', 'n_tokens_mistral': 707, 'n_tokens_neox': 524, 'n_words': 78, 'path': 'refactoring/demo_notebook/.ipynb_checkpoints/SessionStatistics-checkpoint.ipynb', 'repo_name': 'Fabalinks/Multiple_trial_analysis', 'size': '1380'}