Git Product home page Git Product logo

simulationlib's People

Contributors

darynramsden avatar geoffreyhershmartin avatar heyanger avatar marcusrussi avatar nl384 avatar nolongerbreathedin avatar rezayas avatar samanthaandrade avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

simulationlib's Issues

Testing Classes SimParameterDic and SimSettingDic

Would you please write a test code for classes SimParameterDic and SimSettingDic and put it under
SimulationLib/TestSimulationLib/?

Again, I think you have already done it but just to organize things. The csv files that are included in these tests can be put in the same directory (i.e. SimulationLib/TestSimulationLib/).

Tests for linreg

Test if you can fit y = 1 + 2x1 - 3x3 under these scenario (notice the minus sign before 3):

  1. using the regular LS (close-form formula) with no omega or lambda
  2. using the regular LS (close-form formula) with omega = 0.001 or lambda = 1
  3. using the regular LS (close-form formula) with omega = 0.001 or lambda = 0.95
  4. using the regular LS (close-form formula) with omega = 0 or lambda = 0.95
  5. using the updating algorithm with no omega or lambda
  6. using the updating algorithm with omega = 0.001 or lambda = 1
  7. using the updating algorithm with omega = 0.001 or lambda = 0.95
  8. using the updating algorithm with omega = 0 or lambda = 0.95

MakeFileProject

Do we need the MakeFileProject folder? If not, let's delete it. I guess it was added way before when Eyal tried to create a make file project.

Tests for annual mortality rates

Print the annual mortality rates for individuals

  • 3 year-old male in 1998
  • 5 year-old female in 1990
  • 14 year-old male in 1990.234
  • 90 year-old female in 2001
  • 28 year-old male in 2100

Classes SimParameterDic and SimSettingDic

I think you have already done these but I am trying to organize things a little. Please feel free to use a different name for these classes as you find appropriate.

Would you please implement the following two classes and add

  • the .h file under "SimulationLib/SimulationLib/include/SimulationLib/" and
  • the .cpp fine under "SimulationLib/SimulationLib/src/"?
  1. A class named SimParameterDic that gets the csv file containing simulation parameters and returns a dictionary or map of parameters, where each parameter can be accessed by using their short name.
  2. A class named SimSettingDic that gets the csv file containing simulation settings and returns a dictionary or map of parameters, where each parameter can be accessed by using their short name.

Examples of simulation parameters and simulation settings are under "AgentBasedSIRlib/SIRlib/input/"

Percentile

Can we add new a function to DiscreteTimeStatistic class that returns the specified percentile of the observations?

percentile(double alpha) returns alpha*100th percentile of the observations, where alpha is a number between 0 and 1.

Let's discuss if you have any questions. more info about percentile: https://en.wikipedia.org/wiki/Percentile

Distribution data.

Two lines of whatever.
Then each line is as follows:
BLAH,SHORTNAME,TYPE,VALUE.
BLAH is anything comma-free.
SHORTNAME is a short name, which will be used for searching.
TYPE and VALUE work together.
If TYPE is v, VALUE is a number.
Otherwise, VALUE is a filename,
which points to a dataframe containing numbers (type = n),
discrete distributions (type = d),
or continuous distributions (type = c).

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.