Page 1 of 1

how to make triangular membership function

PostPosted: Sun Jul 25, 2010 6:02 am
by umam
this is my code
Code: Select all
FuzzySet fsNS = new FuzzySet("NegativeSmall", new TrapezoidalFunction(-100,-50,0));


but there error:

Error 3 The call is ambiguous between the following methods or properties: 'AForge.Fuzzy.TrapezoidalFunction.TrapezoidalFunction(double, double, double)' and 'AForge.Fuzzy.TrapezoidalFunction.TrapezoidalFunction(double, double, AForge.Fuzzy.TrapezoidalFunction.EdgeType)'

Re: how to make triangular membership function

PostPosted: Sun Jul 25, 2010 9:02 am
by andrew.kirillov
Hmmm ... true, gives a error. Fix it this way - will work (ckecked):
Code: Select all
new TrapezoidalFunction( -100, -50, 0.0 )

Re: how to make triangular membership function

PostPosted: Mon Jul 26, 2010 8:48 am
by umam
thanks andrew