Skip to content

Commit a748ac3

Browse files
committed
Update rulespace.rs
1 parent cec7501 commit a748ac3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rulespace.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use crate::{
44
Float,
55
aggregate::aggregation,
66
defuzz::defuzzification,
7-
error::{self, FuzzyError},
7+
error::{self},
88
mamdani::Rule,
99
sampler::UniformSampler,
1010
variable::Variable,
@@ -53,9 +53,9 @@ impl RuleSpace {
5353
where
5454
KI: Eq + Hash + Borrow<str>,
5555
{
56-
self.aggregate(input, sampler);
56+
let _ = self.aggregate(input, sampler);
5757
let myu = std::mem::take(&mut self.myu);
58-
defuzzification(myu, &self.vars)
58+
Ok(defuzzification(myu, &self.vars)?)
5959
}
6060
//is there a nessecity?
6161
//pub fn consequent_keys() {}

0 commit comments

Comments
 (0)