2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-06-27 13:33:13 +00:00
This commit is contained in:
2022-10-30 18:43:45 +03:00
parent 584cd458de
commit e83f51f952
5 changed files with 46 additions and 18 deletions

View File

@ -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;
}
}