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

ga prediction

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

ga prediction

Postby numpsy » Fri Jan 30, 2009 7:08 pm

i want to ask why there are defined some constants: var constants = new double[] { 1, 2, 3, 5, 7, 11, 13, 17, 19, 23 };

which purpose the have?

Posts: 3
Joined: Fri Jan 30, 2009 7:03 pm

Re: ga prediction

Postby andrew.kirillov » Sat Jan 31, 2009 10:33 am


These constants are added to make GA build expressions not only using variables, but constants as well. For example, if we speak about prediction task, then without constants expressions would be like this:
Code: Select all

But with constants we may have something like this:
Code: Select all
x(t)=3*x(t-1)+x(t-2)*x(t-3)/2 + 7

With best regards,
With best regards,

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

Return to Artificial Intelligence