AForge.NET

  :: AForge.NET Framework :: Articles :: Forums ::

how to make triangular membership function

The forum is to discuss topics from different artificial intelligence areas, like neural networks, genetic algorithms, machine learning, etc.

how to make triangular membership function

Postby umam » Sun Jul 25, 2010 6:02 am

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)'
umam
 
Posts: 10
Joined: Mon Feb 01, 2010 1:22 pm

Re: how to make triangular membership function

Postby andrew.kirillov » Sun Jul 25, 2010 9:02 am

Hmmm ... true, gives a error. Fix it this way - will work (ckecked):
Code: Select all
new TrapezoidalFunction( -100, -50, 0.0 )
With best regards,
Andrew


Interested in supporting AForge.NET Framework?
User avatar
andrew.kirillov
Site Admin, AForge.NET Developer
 
Posts: 3439
Joined: Fri Jan 23, 2009 9:12 am
Location: UK

Re: how to make triangular membership function

Postby umam » Mon Jul 26, 2010 8:48 am

thanks andrew
umam
 
Posts: 10
Joined: Mon Feb 01, 2010 1:22 pm




Return to Artificial Intelligence