-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding new functions, docs, tests, Travis YAML
- Loading branch information
Showing
13 changed files
with
454 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
language: julia | ||
|
||
os: | ||
- osx | ||
- linux | ||
|
||
julia: | ||
- 1.0 | ||
|
||
notifications: | ||
email: false | ||
|
||
after_success: | ||
- julia -e 'using Pkg; cd(Pkg.dir("Nash")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'; | ||
|
||
jobs: | ||
include: | ||
- stage: "Documentation" | ||
julia: 1.0 | ||
os: linux | ||
script: | ||
- julia --project=docs/ -e 'using Pkg; Pkg.instantiate(); | ||
Pkg.develop(PackageSpec(path=pwd()))' | ||
- julia --project=docs/ docs/make.jl | ||
after_success: skip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
MIT License | ||
|
||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,180 @@ | ||
[[Arpack]] | ||
deps = ["BinaryProvider", "Libdl", "LinearAlgebra"] | ||
git-tree-sha1 = "cd64c112638582ba4f0be9c3e20656499c508565" | ||
uuid = "7d9fca2a-8960-54d3-9f78-7d1dccf2cb97" | ||
version = "0.3.2" | ||
|
||
[[Base64]] | ||
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f" | ||
|
||
[[BinDeps]] | ||
deps = ["Libdl", "Pkg", "SHA", "URIParser", "Unicode"] | ||
git-tree-sha1 = "66158ad56b4bf6cc8413b37d0b7bc52402682764" | ||
uuid = "9e28174c-4ba2-5203-b857-d8d62c4213ee" | ||
version = "1.0.0" | ||
|
||
[[BinaryProvider]] | ||
deps = ["Libdl", "SHA"] | ||
git-tree-sha1 = "5b08ed6036d9d3f0ee6369410b830f8873d4024c" | ||
uuid = "b99e7846-7c00-51b0-8f62-c81ae34c0232" | ||
version = "0.5.8" | ||
|
||
[[DataAPI]] | ||
git-tree-sha1 = "674b67f344687a88310213ddfa8a2b3c76cc4252" | ||
uuid = "9a962f9c-6df0-11e9-0e5d-c546b8b5ee8a" | ||
version = "1.1.0" | ||
|
||
[[DataStructures]] | ||
deps = ["InteractiveUtils", "OrderedCollections"] | ||
git-tree-sha1 = "5a431d46abf2ef2a4d5d00bd0ae61f651cf854c8" | ||
uuid = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8" | ||
version = "0.17.10" | ||
|
||
[[Dates]] | ||
deps = ["Printf"] | ||
uuid = "ade2ca70-3891-5945-98fb-dc099432e06a" | ||
|
||
[[Distributed]] | ||
deps = ["LinearAlgebra", "Random", "Serialization", "Sockets"] | ||
uuid = "8ba89e20-285c-5b6f-9357-94700520ee1b" | ||
|
||
[[Distributions]] | ||
deps = ["FillArrays", "LinearAlgebra", "PDMats", "Printf", "QuadGK", "Random", "SpecialFunctions", "Statistics", "StatsBase", "StatsFuns"] | ||
git-tree-sha1 = "d5b170997483dcc19b6f153d15a21aae561eb754" | ||
uuid = "31c24e10-a181-5473-b8eb-7969acd0382f" | ||
version = "0.22.5" | ||
|
||
[[FillArrays]] | ||
deps = ["LinearAlgebra", "Random", "SparseArrays"] | ||
git-tree-sha1 = "85c6b57e2680fa28d5c8adc798967377646fbf66" | ||
uuid = "1a297f60-69ca-5386-bcde-b61e274b549b" | ||
version = "0.8.5" | ||
|
||
[[InteractiveUtils]] | ||
deps = ["LinearAlgebra", "Markdown"] | ||
uuid = "b77e0a4c-d291-57a0-90e8-8db25a27a240" | ||
|
||
[[LibGit2]] | ||
uuid = "76f85450-5226-5b5a-8eaa-529ad045b433" | ||
|
||
[[Libdl]] | ||
uuid = "8f399da3-3557-5675-b5ff-fb832c97cbdb" | ||
|
||
[[LinearAlgebra]] | ||
deps = ["Libdl"] | ||
uuid = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" | ||
|
||
[[Logging]] | ||
uuid = "56ddb016-857b-54e1-b83d-db4d58db5568" | ||
|
||
[[Markdown]] | ||
deps = ["Base64"] | ||
uuid = "d6f4376e-aef5-505a-96c1-9c027394607a" | ||
|
||
[[Missings]] | ||
deps = ["DataAPI"] | ||
git-tree-sha1 = "de0a5ce9e5289f27df672ffabef4d1e5861247d5" | ||
uuid = "e1d29d7a-bbdc-5cf2-9ac0-f12de2c33e28" | ||
version = "0.4.3" | ||
|
||
[[OrderedCollections]] | ||
deps = ["Random", "Serialization", "Test"] | ||
git-tree-sha1 = "c4c13474d23c60d20a67b217f1d7f22a40edf8f1" | ||
uuid = "bac558e1-5e72-5ebc-8fee-abe8a469f55d" | ||
version = "1.1.0" | ||
|
||
[[PDMats]] | ||
deps = ["Arpack", "LinearAlgebra", "SparseArrays", "SuiteSparse", "Test"] | ||
git-tree-sha1 = "5f303510529486bb02ac4d70da8295da38302194" | ||
uuid = "90014a1f-27ba-587c-ab20-58faa44d9150" | ||
version = "0.9.11" | ||
|
||
[[Pkg]] | ||
deps = ["Dates", "LibGit2", "Markdown", "Printf", "REPL", "Random", "SHA", "UUIDs"] | ||
uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" | ||
|
||
[[Printf]] | ||
deps = ["Unicode"] | ||
uuid = "de0858da-6303-5e67-8744-51eddeeeb8d7" | ||
|
||
[[QuadGK]] | ||
deps = ["DataStructures", "LinearAlgebra"] | ||
git-tree-sha1 = "dc84e810393cfc6294248c9032a9cdacc14a3db4" | ||
uuid = "1fd47b50-473d-5c70-9696-f719f8f3bcdc" | ||
version = "2.3.1" | ||
|
||
[[REPL]] | ||
deps = ["InteractiveUtils", "Markdown", "Sockets"] | ||
uuid = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb" | ||
|
||
[[Random]] | ||
deps = ["Serialization"] | ||
uuid = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" | ||
|
||
[[Rmath]] | ||
deps = ["BinaryProvider", "Libdl", "Random", "Statistics"] | ||
git-tree-sha1 = "2bbddcb984a1d08612d0c4abb5b4774883f6fa98" | ||
uuid = "79098fc4-a85e-5d69-aa6a-4863f24498fa" | ||
version = "0.6.0" | ||
|
||
[[SHA]] | ||
uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce" | ||
|
||
[[Serialization]] | ||
uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b" | ||
|
||
[[Sockets]] | ||
uuid = "6462fe0b-24de-5631-8697-dd941f90decc" | ||
|
||
[[SortingAlgorithms]] | ||
deps = ["DataStructures", "Random", "Test"] | ||
git-tree-sha1 = "03f5898c9959f8115e30bc7226ada7d0df554ddd" | ||
uuid = "a2af1166-a08f-5f64-846c-94a0d3cef48c" | ||
version = "0.3.1" | ||
|
||
[[SparseArrays]] | ||
deps = ["LinearAlgebra", "Random"] | ||
uuid = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" | ||
|
||
[[SpecialFunctions]] | ||
deps = ["BinDeps", "BinaryProvider", "Libdl"] | ||
git-tree-sha1 = "3bdd374b6fd78faf0119b8c5d538788dbf910c6e" | ||
uuid = "276daf66-3868-5448-9aa4-cd146d93841b" | ||
version = "0.8.0" | ||
|
||
[[Statistics]] | ||
deps = ["LinearAlgebra", "SparseArrays"] | ||
uuid = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" | ||
|
||
[[StatsBase]] | ||
deps = ["DataAPI", "DataStructures", "LinearAlgebra", "Missings", "Printf", "Random", "SortingAlgorithms", "SparseArrays", "Statistics"] | ||
git-tree-sha1 = "19bfcb46245f69ff4013b3df3b977a289852c3a1" | ||
uuid = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91" | ||
version = "0.32.2" | ||
|
||
[[StatsFuns]] | ||
deps = ["Rmath", "SpecialFunctions"] | ||
git-tree-sha1 = "f290ddd5fdedeadd10e961eb3f4d3340f09d030a" | ||
uuid = "4c63d2b9-4356-54db-8cca-17b64c39e42c" | ||
version = "0.9.4" | ||
|
||
[[SuiteSparse]] | ||
deps = ["Libdl", "LinearAlgebra", "SparseArrays"] | ||
uuid = "4607b0f0-06f3-5cda-b6b1-a6196a1729e9" | ||
|
||
[[Test]] | ||
deps = ["Distributed", "InteractiveUtils", "Logging", "Random"] | ||
uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
|
||
[[URIParser]] | ||
deps = ["Test", "Unicode"] | ||
git-tree-sha1 = "6ddf8244220dfda2f17539fa8c9de20d6c575b69" | ||
uuid = "30578b45-9adc-5946-b283-645ec420af67" | ||
version = "0.4.0" | ||
|
||
[[UUIDs]] | ||
deps = ["Random"] | ||
uuid = "cf7118a7-6976-5b1a-9a39-7adc72f591a4" | ||
|
||
[[Unicode]] | ||
uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,7 @@ name = "Nash" | |
uuid = "bd078fd0-4306-4e4b-b0ec-dacbec99dedf" | ||
authors = ["Lukasz Krainski <[email protected]>"] | ||
version = "0.1.0" | ||
|
||
[deps] | ||
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f" | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# Nash.jl | ||
Implementation of Games Theory algorithms in Julia | ||
# Nash.jl | ||
Implementation of Games Theory algorithms in Julia |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using Documenter | ||
|
||
try | ||
using Nash | ||
catch | ||
if !("../src/" in LOAD_PATH) | ||
push!(LOAD_PATH,"../src/") | ||
@info "Added \"../src/\"to the path: $LOAD_PATH " | ||
using Nash | ||
end | ||
end | ||
|
||
makedocs( | ||
sitename = "Nash.jl", | ||
format = format = Documenter.HTML( | ||
prettyurls = get(ENV, "CI", nothing) == "true" | ||
), | ||
modules = [Nash], | ||
pages = ["index.md", "reference.md"], | ||
doctest = true | ||
) | ||
|
||
|
||
|
||
deploydocs( | ||
repo ="github.com/KrainskiL/Nash.jl.git", | ||
target="build" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Nash.jl | ||
|
||
Documentation for Nash.jl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Reference | ||
========= | ||
|
||
```@meta | ||
CurrentModule = Nash | ||
DocTestSetup = quote | ||
using Nash | ||
end | ||
``` | ||
|
||
Basics | ||
---------------------- | ||
```@docs | ||
random_2players_game | ||
random_nplayers_game | ||
outer | ||
get_payoff | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
module Nash | ||
|
||
greet() = print("Hello World!") | ||
|
||
end # module | ||
module Nash | ||
|
||
#packages | ||
using Distributions | ||
|
||
#functions | ||
export random_2players_game, random_nplayers_game, outer, get_payoff | ||
export game, getpayoff | ||
|
||
#files | ||
include("game_theory.jl") | ||
|
||
end |
Oops, something went wrong.