Git Product home page Git Product logo

costmodelr's People

Contributors

robinl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

costmodelr's Issues

More generic pattern of adding modules

Rather than the pattern like this

add_oneoff_costs <- function(cost_model, oneoff_cost_assumptions) {

  # If this is the first time we've called add_oneoff_costs, then register a new module, otherwise append new data
  if (!("oneoff_cost" %in% names(cost_model$registered_modules))) {
    cost_model$registered_modules$oneoff_cost <- list()
    cost_model$registered_modules$oneoff_cost$oneoff_cost_raw <- oneoff_cost_assumptions

    # Note we don't process at this point, we just say how to proess.
    # Appending is therefore just a case of adding more assumption rows.  The only difficulty is the id column.
    cost_model$registered_modules$oneoff_cost$process_module <- process_oneoff_costs
  } else {
    cost_model$registered_modules$oneoff_cost$oneoff_cost_raw %<>%
      dplyr::bind_rows(oneoff_cost_assumptions)
  }

  cost_model
}

instead it appends this oneoff cost to list of registered models, which could include multiple oneof costs. This means we can easily add multiple oneoff costs, but is also a more flexible pattern. So for instance, adding user variable costs multiple times, you might need different num users each time. By treating each add operation independently, it is more flexible

Create template project

Somewhere - possible in this or another repository - we want a template project, with template assumptions files read to be edited

hierarchicalbubble doesn't exist

When trying to install the costsmodelr package i am encountering an error "ERROR: dependency 'hierarchicalbubble' is not available for package 'costmodelr'". I can't seem to find any documentation that shows this package even exists or previously existed.

More flexible user variable costs

The things you should be able to control are:

(1) When date does this cost start?
(2) What is the initial quantity at the time the costs start?
(3) How does the quantity increase through time, and how is this related to the number of users?
(4) Is there a fixed quantity increase associated with a new user?

Add user fixed costs

At the moment there's no way of adding costs which are fixed, but scale with the number of users - such as if each user needs 4gb of EBS pre-allocated

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.