mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-06-27 13:33:13 +00:00
Fuzzy
This commit is contained in:
@ -9,7 +9,7 @@ namespace Esiur.Analysis.Fuzzy
|
||||
{
|
||||
public MembershipFunction Function { get; set; }
|
||||
|
||||
public double AlphaCut { get; set; } = double.MinValue;
|
||||
public double AlphaCut { get; set; } = double.MaxValue;
|
||||
|
||||
|
||||
|
||||
@ -35,7 +35,7 @@ namespace Esiur.Analysis.Fuzzy
|
||||
|
||||
var results = Function(input);
|
||||
|
||||
return results < AlphaCut ? 0 : results;
|
||||
return results > AlphaCut ? AlphaCut : results;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user