Skip to content

Commit

Permalink
Merge pull request #267 from JuliaReach/schillic/docs
Browse files Browse the repository at this point in the history
Polish documentation
  • Loading branch information
schillic authored Oct 16, 2023
2 parents d4fec28 + 642a7c4 commit c994bdc
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 39 deletions.
4 changes: 2 additions & 2 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ DocMeta.setdocmeta!(MathematicalSystems, :DocTestSetup,
makedocs(; sitename="MathematicalSystems.jl",
modules=[MathematicalSystems],
format=Documenter.HTML(; prettyurls=get(ENV, "CI", nothing) == "true",
assets=["assets/aligned.css"]),
assets=["assets/aligned.css"], size_threshold_warn=150 * 2^10),
pagesonly=true,
pages=["Home" => "index.md",
"Manual" => Any["System types overview" => "man/systems.md"],
"Manual" => Any["Overview of System Types" => "man/systems.md"],
"Library" => Any["Types" => "lib/types.md",
"Methods" => "lib/methods.md",
"Internals" => "lib/internals.md"],
Expand Down
8 changes: 4 additions & 4 deletions docs/src/lib/internals.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ DocTestSetup = quote
end
```

## Expression handling
## Expression Handling

```@docs
_corresponding_type
Expand All @@ -24,20 +24,20 @@ add_asterisk
sort
```

## Querying expressions
## Querying Expressions

```@docs
is_equation
extract_sum
```

## Evaluation of AbstractSystem at given state
## Evaluation of AbstractSystem at Given State

```@docs
_instantiate
```

## Naming convention for systems' fields
## Naming Convention for Systems' Fields

Systems' fields should be accessed externally by their respective getter functions.
Internally to the library, the following naming conventions are used.
Expand Down
43 changes: 16 additions & 27 deletions docs/src/lib/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,34 +104,22 @@ ExactDiscretization
EulerDiscretization
```

## System macro

```@docs
@system
```

## Initial-value problem macro
## Initial Value Problems

```@docs
@ivp
InitialValueProblem
IVP
initial_state
system
```

## Identity operator
## Identity Operator

```@docs
IdentityMultiple
Id
```

## Initial Value Problems

```@docs
InitialValueProblem
IVP
initial_state
system
```

## Input Types

```@docs
Expand Down Expand Up @@ -162,22 +150,23 @@ BlackBoxControlMap
ConstrainedBlackBoxControlMap
```

### Macros

```@docs
@map
```

## Systems with output
## Systems with Output

```@docs
SystemWithOutput
LinearTimeInvariantSystem
LTISystem
```


## Vector Field
## Vector Fields
```@docs
VectorField
```

## Macros

```@docs
@system
@ivp
@map
```
6 changes: 3 additions & 3 deletions docs/src/man/systems.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# System types overview
# Overview of System Types

## Using the macro
## Using the `@system` Macro

A convenient way to create a new system is with the `@system` macro. For example,
the ODE $x'(t) = -2x(t)$ is simply `x' = -2x`, where $x'(t) := dx/dt$ is the derivative
Expand Down Expand Up @@ -56,7 +56,7 @@ for (controlled) inputs and noise respectively. Please note that some systems ar
equivalent, for example `CLCCS` and `NCLCS` being $x' = Ax + Bu$ and $x' = Ax + Dw$ respectively;
the difference lies in the resulting value of getter functions such as `inputset` and `noiseset`.

## Summary tables
## Summary Tables

The following table summarizes the different system types in abbreviated form.
The abbreviated names are included here only for reference and are not exported.
Expand Down
6 changes: 3 additions & 3 deletions src/discretize.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ The resulting discretization writes as
The algorithm described above is a well known result from the literature [1].
[1] https://en.wikipedia.org/wiki/Discretization#Discretization_of_linear_state_space_models
[1] [Wikipedia](https://en.wikipedia.org/wiki/Discretization#Discretization_of_linear_state_space_models)
"""
struct ExactDiscretization <: AbstractDiscretizationAlgorithm end

Expand All @@ -71,9 +71,9 @@ The resulting discretization writes as
where ``A^d = I + ΔT ~ A``, ``B^d = ΔT ~ B``,
``c^d = ΔT ~ c`` and ``D^d = ΔT ~ D``.
The algorithm described above is a well known result from the literature [1].
The algorithm described above is a well-known result from the literature [1].
[1] https://en.wikipedia.org/wiki/Discretization#Approximations
[1] [Wikipedia](https://en.wikipedia.org/wiki/Discretization#Approximations)
"""
struct EulerDiscretization <: AbstractDiscretizationAlgorithm end

Expand Down

0 comments on commit c994bdc

Please sign in to comment.