Skip to content

Commit 368a201

Browse files
committed
update README.dm
1 parent 6f12629 commit 368a201

File tree

4 files changed

+45
-1
lines changed

4 files changed

+45
-1
lines changed

Project.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ uuid = "408f5b3e-f2a2-48a6-b4bb-c8aa44c458e6"
33
authors = ["Jun Tian <[email protected]> and contributors"]
44
version = "0.1.0"
55

6+
[deps]
7+
FillArrays = "1a297f60-69ca-5386-bcde-b61e274b549b"
8+
IntervalSets = "8197267c-284f-5f27-9208-e0e47529a953"
9+
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
10+
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
11+
612
[compat]
713
julia = "1.6"
814

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,32 @@
66
[![Coverage](https://codecov.io/gh/JuliaReinforcementLearning/CommonRLSpaces.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/JuliaReinforcementLearning/CommonRLSpaces.jl)
77
[![Code Style: Blue](https://img.shields.io/badge/code%20style-blue-4495d1.svg)](https://github.com/invenia/BlueStyle)
88
[![PkgEval](https://JuliaCI.github.io/NanosoldierReports/pkgeval_badges/C/CommonRLSpaces.svg)](https://JuliaCI.github.io/NanosoldierReports/pkgeval_badges/report.html)
9+
10+
## Usage
11+
12+
### Construction
13+
14+
|Category|Style|Example|
15+
|:---|:----|:-----|
16+
|Enumerable discrete space| `DiscreteSpaceStyle{2, ()}()` | `Space((:cat, :dog))`, `Space(0:1)`, `Space(1:2)`, `Space(Bool)`|
17+
|Multi-dimensional discrete space| `DiscreteSpaceStyle{2, (3,4)}()` | `Space((:cat, :dog), 3, 4)`, `Space(0:1, 3, 4)`, `Space(1:2, 3, 4)`, `Space(Bool, 3, 4)`|
18+
|Multi-dimensional variable discrete space| `DiscreteSpaceStyle{(2,)}()` | `Space(SVector((:cat, :dog), (:litchi, :longan, :mango))`, `Space([-1:1, (false, true)])`|
19+
|Continuous space| `ContinuousSpaceStyle()` | `Space(-1.2..3.3)`, `Space(Float32)`|
20+
|Multi-dimensional continuous space| `ContinuousSpaceStyle{(3,4)}()` | `Space(-1.2..3.3, 3, 4)`, `Space(Float32, 3, 4)`|
21+
22+
### API
23+
24+
### Size Info
25+
26+
```julia
27+
```
28+
29+
#### Sampling
30+
31+
```julia
32+
```
33+
34+
### Existence Checking
35+
36+
```julia
37+
```

src/CommonRLSpaces.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
module CommonRLSpaces
22

3-
# Write your package code here.
3+
using Reexport
4+
5+
@reexport using FillArrays
6+
@reexport using IntervalSets
7+
@reexport using StaticArrays
8+
9+
include("basic.jl")
410

511
end

src/basic.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
struct Space{T}
2+
s::T
3+
end

0 commit comments

Comments
 (0)