Constructor of the 'Particle' class
Evaluate the score of the particle's position
Evaluate the score of the particle's position. Updates the local best if the new one is better.
Update the position of the particle with the velocity
Update the position of the particle given the constants after calculating the new velocity
a vector with the names of the nodes in t_0
number of timeslices of the DBN
vector that defines the random velocity initialization probabilities
bnlearn score function used
dataset to evaluate the fitness of the particle
parameter that varies the effect of the inertia
parameter that varies the effect of the global best
position of the global best
parameter that varies the effect of the local best
vector that defines the range of random variation of gb_cte and lb_cte
A new 'Particle' object
The score of the current position
ps
position of the particle
cl
velocity of the particle
lb
local best score obtained
lb_ps
local best position found
score
bnlearn score function used
A particle has a Position, a Velocity and a local best