Skip to content

Commit 8aa4845

Browse files
author
Ander Gray
committed
fixes some typeos
1 parent 5351e6b commit 8aa4845

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/src/sets.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Comparisons
55

66
Comparisons `(<, >, <=, >=, ==)` between p-boxes, intervals and scalars can be performed. However unlike for comparisons between real numbers which yield Boolean values (`true` or `false`), comparisons with p-boxes generally yield interval probabilities, giving the uncertainty that the random variable characterised by a p-box meets the condition.
77

8-
__*NOTE: unlike `IntervalArithmetic.jl`, comparisons in `ProbabilityBoundsAnalysis.jl` will generally give non-Boolean values (interval probabilities). This may cause crashes when evaluating control-flow (if-else) with uncertainty*__
8+
__*NOTE: unlike `IntervalArithmetic.jl`, comparisons in `ProbabilityBoundsAnalysis.jl` will generally give non-Boolean values (interval probabilities). This may cause crashes when evaluating control-flow (if-else) with uncertainty.*__
99

1010
### Comparisons of p-boxes and scalars
1111

@@ -24,22 +24,22 @@ julia> X = uniform(0, 1)
2424
julia> X <= 0.7
2525
[0.695, 0.705001]
2626

27-
julia> X > 0.4
27+
julia> X >= 0.4
2828
[0.594999, 0.605]
2929

3030
julia> X = normal(interval(-0.5, 0.5), interval(1, 1.5))
3131
julia> X >= 1
3232
[0.0649999, 0.37]
3333
```
3434

35-
Boolean values are returned if condition is gauranteed
35+
Boolean values are returned if the condition is guaranteed
3636

3737
```julia
3838
julia> X = uniform(0, 1)
3939
julia> X <= 2
4040
true
4141

42-
julia> X > 2
42+
julia> X >= 2
4343
false
4444
```
4545

@@ -61,13 +61,13 @@ julia> Y = interval(0.7, 2)
6161
julia> X <= Y
6262
[0.695, 1]
6363

64-
julia> X > Y
64+
julia> X >= Y
6565
[0, 0.305]
6666

6767
julia> X <= interval(2, 3)
6868
true
6969

70-
julia> X > interval(2, 3)
70+
julia> X >= interval(2, 3)
7171
false
7272
```
7373

@@ -103,7 +103,7 @@ julia> Y = uniform(0.5, 1.5)
103103
julia> <=(X,Y, corr = 0)
104104
[0.869999, 0.880001]
105105

106-
julia> >(X,Y, corr = 0)
106+
julia> >=(X,Y, corr = 0)
107107
[0.119999, 0.130001]
108108

109109
julia> <=(X,Y, corr = 1)
@@ -112,7 +112,7 @@ true
112112
julia> <=(X,Y, corr = -1)
113113
[0.744999, 0.755001]
114114

115-
julia> >(X,Y, corr = 0.5)
115+
julia> >=(X,Y, corr = 0.5)
116116
[0.04, 0.0550001]
117117
```
118118

0 commit comments

Comments
 (0)