We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cec7501 commit a748ac3Copy full SHA for a748ac3
src/rulespace.rs
@@ -4,7 +4,7 @@ use crate::{
4
Float,
5
aggregate::aggregation,
6
defuzz::defuzzification,
7
- error::{self, FuzzyError},
+ error::{self},
8
mamdani::Rule,
9
sampler::UniformSampler,
10
variable::Variable,
@@ -53,9 +53,9 @@ impl RuleSpace {
53
where
54
KI: Eq + Hash + Borrow<str>,
55
{
56
- self.aggregate(input, sampler);
+ let _ = self.aggregate(input, sampler);
57
let myu = std::mem::take(&mut self.myu);
58
- defuzzification(myu, &self.vars)
+ Ok(defuzzification(myu, &self.vars)?)
59
}
60
//is there a nessecity?
61
//pub fn consequent_keys() {}
0 commit comments