2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-06-27 13:33:13 +00:00

Soft Computing

This commit is contained in:
2022-11-06 13:25:49 +03:00
parent f1d5b0a38b
commit 2844eb60ec
11 changed files with 790 additions and 430 deletions

View File

@ -23,7 +23,7 @@ namespace Esiur.Analysis.Fuzzy
{
return new MembershipFunction(x =>
{
if (x <= peak) return 1;
if (x <= peak) return 0;
if (x > peak && x < end) return (end - x) / (end - peak);
return 0;
});
@ -33,7 +33,7 @@ namespace Esiur.Analysis.Fuzzy
{
return new MembershipFunction(x =>
{
if (x >= peak) return 1;
if (x >= peak) return 0;
if (x < peak && x > start) return (x - start) / (peak - start);
return 0;
});