simulationlib's People
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/).
Test for annual marriage rate
Print the annual marriage rates for individuals
- 3 year-old male
- 25.1 year-old female
- 90 year-old male
Tests for Household initial structure
For the first 10 household:
Print out the age and sex of the household head and the age, sex, and relationship of the other household members.
Tests for linreg
Test if you can fit y = 1 + 2x1 - 3x3 under these scenario (notice the minus sign before 3):
- using the regular LS (close-form formula) with no omega or lambda
- using the regular LS (close-form formula) with omega = 0.001 or lambda = 1
- using the regular LS (close-form formula) with omega = 0.001 or lambda = 0.95
- using the regular LS (close-form formula) with omega = 0 or lambda = 0.95
- using the updating algorithm with no omega or lambda
- using the updating algorithm with omega = 0.001 or lambda = 1
- using the updating algorithm with omega = 0.001 or lambda = 0.95
- 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/"?
- 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.
- 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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.