Skip to main content

A Python Library for Mobile Crowdsensing Problems

Project description

A Python Library for Mobile Crowdsensing Problems, with random, Epsilon-Greedy and New_MAB methods to build a MCS system and its group.

Installation

pip install mcspy

Author contact

Han Yaohui

1407210129@csu.edu.cn

PyPI Address

https://pypi.org/project/mcspy/

Source Code

see https://github.com/Han-0107/mcspy

Script example

https://github.com/Han-0107/New_MAB_in_MCS

Functions

Basic Functions

1. constant_produce(num_of_system)
2. system_postprocess(relation_pre, workers, group_efficiency, times_total, num_of_group)
3. system_init(num_of_group, num_of_system)
4. normalization(x, num_of_system)
5. reselection_judge(workers, num_choice, i, num_of_group)
6. epsilon_produce(times)
7. random_unit(p)
8. list_init(start, stop, length)
9. result_produce(num_choice, pos_choice, workers, reselection_flag, num_of_group, relation_real, ability_of_workers)

Matrix Functions

1. matrix_assign(result_of_system, relation_total, relation_n, workers, num_of_group)
2. matrix_renewal(relation_n, relation_pre, relation_total, num_of_system)

Printing Functions

1. print_basic(relation_real, num_of_system, num_of_group, relation_var, abilities_var, ability_of_workers)
2. print_result(group_efficiency)
3. print_result_of_all(sum_of_result, iterations)
4. print_time(start, end)

Working Functions

1. group_work(workers, relation_real, num_of_group, ability_of_workers)
2. system_work_random(workers, num_of_group, num_of_system, relation_real, ability_of_workers)
3. system_work_epsilon(workers, min_index, person_efficiency, epsilon, num_of_system, num_of_group, relation_real, ability_of_workers)
4. system_work_mab(workers, min_index, person_efficiency, person_co, times, epsilon, num_of_system, num_of_group, relation_real, ability_of_workers):

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcspy-1.2.3.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcspy-1.2.3-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file mcspy-1.2.3.tar.gz.

File metadata

  • Download URL: mcspy-1.2.3.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for mcspy-1.2.3.tar.gz
Algorithm Hash digest
SHA256 f39041eae673b1a96006d6877be6a441a5f504f82ea16e01d63f11e017c99c4e
MD5 3b8e9d5c11e758420dacb8f2350cb8ab
BLAKE2b-256 f2b9ea88c7b3d6346a7976bf0d70765a31eab7477bc3edaa0df26703d51fe594

See more details on using hashes here.

File details

Details for the file mcspy-1.2.3-py3-none-any.whl.

File metadata

  • Download URL: mcspy-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 19.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for mcspy-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 76ba5467848aaf75463564b38157e490b0b9d1f676036e7235af97c01039eda3
MD5 9a34de8f19c4b83eb652c5281c5bb12f
BLAKE2b-256 24f4a00d429ec760b30cefc1848b2b660850d2d0e9efe48196e5710af995d401

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page