Skip to content

Commit c7be89d

Browse files
docs: add docstring for SampleTime
1 parent 3032d2f commit c7be89d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/discretedomain.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
using Symbolics: Operator, Num, Term, value, recursive_hasoperator
22

3+
"""
4+
function SampleTime()
5+
6+
`SampleTime()` can be used in the equations of a hybrid system to represent time sampled
7+
at the inferred clock for that equation.
8+
"""
39
struct SampleTime <: Operator
410
SampleTime() = SymbolicUtils.term(SampleTime, type = Real)
511
end

0 commit comments

Comments
 (0)