Update README.md
This commit is contained in:
parent
4df512a087
commit
f1aea19c7c
1 changed files with 13 additions and 3 deletions
16
README.md
16
README.md
|
|
@ -147,13 +147,23 @@ phi = mtl.parse('F(a | b)')
|
|||
print(phi(data, quantitative=False))
|
||||
# output: True
|
||||
|
||||
# Evaluate at t=3
|
||||
print(phi(data, t=3, quantitative=False))
|
||||
phi = mtl.parse('F(a | b)')
|
||||
print(phi(data))
|
||||
# output: True
|
||||
|
||||
# Note, quantitative parameter defaults to False
|
||||
|
||||
# Evaluate at t=3.
|
||||
print(phi(data, t=3))
|
||||
# output: False
|
||||
|
||||
# Compute satisifaction signal
|
||||
print(phi(data, t=None)
|
||||
# output: [(0, True), (0.2, True), (4, False)]
|
||||
|
||||
# Evaluate with discrete time
|
||||
phi = mtl.parse('X b')
|
||||
print(phi(data, dt=0.2, quantitative=False))
|
||||
print(phi(data, dt=0.2))
|
||||
# output: True
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue