tiny_outcome 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tiny_outcome.rb +5 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abde8e389e945ae56753b61b75b9f7df7474044820cff7250874a73286a2f8bb
|
4
|
+
data.tar.gz: 59f041591c740d22a42f55ef7e6a2363854d9715a4aa22775fb80f8384836aee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6c89f18a20e5b2c4e0b0fbaff9391680b98901a6f2ee6cfc6af09089027c9b9642fafb28ea46c46ec7af42282c083a3fc98477413ea3510ed2d072764a4200f
|
7
|
+
data.tar.gz: ec5e0b226364e2d8f7810fa9fd4691acb8fc3dae2dc704c9566ba0d27c05f571252b14b47d5d077a646927a5c31869356b7f0a6145ca3b2b20ecb5178581d574
|
data/lib/tiny_outcome.rb
CHANGED
@@ -128,6 +128,11 @@ class TinyOutcome
|
|
128
128
|
warmth == warmup
|
129
129
|
end
|
130
130
|
|
131
|
+
# the opposite of warm: a TinyOutcome can only be cold or warm
|
132
|
+
def cold?
|
133
|
+
!warm?
|
134
|
+
end
|
135
|
+
|
131
136
|
# true if we've received at least precision number of samples
|
132
137
|
# false otherwise
|
133
138
|
def full?
|