Skip to main content

mcspy

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):

Metadata

Release files for mcspy 1.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcspy 1.3.1
File Size Uploaded
mcspy-1.3.1.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mcspy 1.3.1
File Interpreter ABI Platform
mcspy-1.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.2 kB

Release files / mcspy-1.3.1.tar.gz

Download URL mcspy-1.3.1.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
eddb9509c109f50d81d63a62f778cab81a9b7e07e715bd069fdf79660e01ba68
BLAKE2b-256 checksum
How to use checksums
536e542394a33dba2610853e04c21b3d08a077441b510903135340637c343720
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / mcspy-1.3.1-py3-none-any.whl

Download URL mcspy-1.3.1-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6b9e187b60a7b424b13205d9372f9f03f36172066e008c6d0a982c26db37ff9a
BLAKE2b-256 checksum
How to use checksums
90ecd1046fa09e9fa7f5eafd2686e7c2433670df24ff71cb93d9f380ad6270ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

This release

1.3.1 This release

2 release files

1.2.5

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2

2 release files

1.1

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page