Exemplo n.º 1
0
 protected void _FillSwarmParameters(InertiaSwarmCreationParameters parameters)
 {
     parameters.VerifyValues();
     this.InertiaMax     = parameters.InertiaMax;
     this.InertiaMin     = parameters.InertiaMin;
     this.InertiaMaxTime = parameters.InertiaMaxTime;
     this.FillSwarmParameters((SwarmCreationParameters)parameters);
 }
Exemplo n.º 2
0
 public InertiaSwarm(InertiaSwarmCreationParameters parameters)
 {
     this._FillSwarmParameters(parameters);
     this.Particles = this.CreateParticles(parameters);
     this.SplitParticlesInSets(parameters.NumberOfParticleSets);
 }