Giter VIP home page Giter VIP logo

thalerjonathan / phd Goto Github PK

View Code? Open in Web Editor NEW
30.0 30.0 5.0 574.48 MB

Stuff of my PhD I want to share publicly: all code, texts of my papers, research-notes & research-diary

License: GNU General Public License v3.0

TeX 31.26% Agda 0.07% Erlang 0.05% Haskell 8.49% HTML 0.03% MATLAB 2.82% Makefile 0.01% Batchfile 0.01% Shell 0.03% Java 1.51% Groovy 0.02% Scala 0.07% NetLogo 0.10% Limbo 52.16% Rascal 0.17% Elm 0.03% Idris 1.10% PostScript 0.21% CSS 0.01% Mathematica 1.85%

phd's People

Contributors

thalerjonathan avatar txa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

phd's Issues

Implement A functional framework for agent-based models of exchange

The work of Ionescou in the paper "A functional framework for agent-based models of exchange" seems very interesting also in my context. It may be an interesting context in which to apply my research as well:

  • implement Gintis paper upon which the work of Ionescou et al is based. Also use the Masterthesis "An Extensible and Scalable Agent-Based Simulation of Barter Economics" by Evensen and Märdin.
  • implement Ionescous papers (the above mentioned paper and the specification paper which was not published)

Can we apply reasoning and testing?
Can we add depenent types?
Can we use quickCheck?

Dependent types in pure functional ABS

After finished studying the Idris Book and having developed a proper understanding of Dependen Types, investigate where and how dependent types could be of use in my pure functional approach to ABS. I explicitly want to focus on Idris as context of this research.

does not work

-- (<*>) g a = fmap (uncurry $) ((**) g a)

main.hs:11:30: error:
* Couldn't match type (a -> b, a)' with a0 -> b0 -> c0'
Expected type: f (a0 -> b0 -> c0)
Actual type: f (a -> b, a)
* In the second argument of fmap', namely (() g a)'
In the expression: fmap (uncurry $) ((
) g a)
In an equation for ap': ap' g a = fmap (uncurry $) (() g a)
* Relevant bindings include
a :: f a (bound at main.hs:11:7)
g :: f (a -> b) (bound at main.hs:11:5)
ap' :: f (a -> b) -> f a -> f b (bound at main.hs:11:1)
|
11 | ap' g a = fmap (uncurry $) ((
) g a)

Suggestion: simpler expression

The following code:

let mayInf = find (Infected==) aInfs
if isJust mayInf
    then return (Infected, Just ())
    else return (Susceptible, Nothing)

is the same as the simpler:

 if any (Infected ==) aInfs
    then return (Infected,    Just ())
    else return (Susceptible, Nothing)

See: https://github.com/thalerjonathan/phd/blob/d113e8d15e2b524e8169f40bc8cf1e7631d5649e/coding/papers/FrABS/Haskell/SIRDunai/src/Main.hs#L93--L96

EDIT: Moves link below. Adds complete code quote to description.

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.