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