public override ILearnAlgorithmConf getConf(int CountFeatures) { ILearnAlgorithmConf result = new PSOSearchConf(); result.Init(CountFeatures); return(result); }
public virtual void Init(ILearnAlgorithmConf Config) { PSOSearchConf conf = Config as PSOSearchConf; count_iteration = conf.PSOSCCountIteration; c1 = conf.PSOSCC1; c2 = conf.PSOSCC2; count_particle = conf.PSOSCPopulationSize; X = new KnowlegeBaseSARules[count_particle]; V = new KnowlegeBaseSARules[count_particle]; Pi = new KnowlegeBaseSARules[count_particle]; Pg = new KnowlegeBaseSARules(); Errors = new double[count_particle]; OldErrors = new double[count_particle]; rnd = new Random(); preIterate(theFuzzySystem); }