public override ILearnAlgorithmConf getConf(int CountFeatures) { BSBConfig conf = new BSBConfig(); conf.Init(CountFeatures); return(conf); }
public virtual void Init(ILearnAlgorithmConf conf) { config = conf as BSBConfig; iter = ((BSBConfig)conf).iter; N = ((BSBConfig)conf).N; m = ((BSBConfig)conf).m; F = ((BSBConfig)conf).F; p_one = ((BSBConfig)conf).p_one; p_one_center = ((BSBConfig)conf).p_one_center; p_two_center = ((BSBConfig)conf).p_two_center; p = ((BSBConfig)conf).p; numberOfPopulations = ((BSBConfig)conf).numberOfPopulations; }