GithubHelp home page GithubHelp logo

jannem / datacost Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ddeckard/datacost

0.0 2.0 0.0 142 KB

A MATLAB function that fits the specified probability distribution function to mobile data consumption for using Monte Carlo methods for predicting which data plan is most likely to result in the lowest future cost. Applicable to single or shared data plans.

License: GNU General Public License v3.0

MATLAB 100.00%

datacost's Introduction

datacost

Predicts which data plan is most likely to result in the lowest cost.Can be used for single users or multiple users/devices with one shared data plan.Fits the specified probability distribution function (PDF) to input data (default is normal). Runs 1000 simulations for specified period of time (default is 24 months). Calculates the cost of the total amount of data based on each specified data plan and overage costs. By default if quota is exceeded with only 4 days remaining in billing cycle, no extra data are purchased. Number of days in month is based on total simulated usage for that month divided by 30 days. For more than two devices, the shared family plans are used by default. Otherwise the individual plans are used.

There is no limit on the number of users that can be included other than the available system memory. data are stored in a MxNxU matrix where M is the number of months, N is the number of simulations (1000), and U is the number of users. MATLAB requires continuous blocks of memory to store variables, so it is possible to run out of usable memory, especially as N is increased.

REQUIRED INPUT

data cell array of monthly data consumption amounts in GB, one cell per user/device

OPTIONAL INPUT

month (24) {scaler} number of months to run simulation into the future. tax (0) {scaler} consumption tax rate as percentage, e.g., 8% is '8' (not yet implemented) line (800) {scaler} Cost for each additional SIM card. Defulat based on NTT Docomo lowest cost with Mopera ISP. addamount (1) {scaler} Bundeled amout of additional data that is purchased after quota is exceeded. addcost (1000) {scaler} Cost of the data specified in addamount. Defualt is 1 GB at 1,000 yen. thresh (4) {sclaer} Number of days remaining in the month up until which additional data are purchased. planprice (3500 500 5700 | 9500 12500 16000 22500) {vector} cost of individual | family plans for NTT Docomo quota (2 5 7 | 10 15 20 30) {vector} Data quotas for NTT Docomo individual | family plans dist (normal) {cell array} Distribution type that is fit to input 'data' to create probability density function (pdf). If only one value is input, it is applied to all data. currency (man yen) {character} Currency of prices plot (all) {character} 'all': plots results and PDFs; 'none': plotting off; 'results': plots only results; 'pdfs' plots only PDFs

datacost's People

Contributors

ddeckard avatar jannem avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.