Constructor of the 'natParticle' 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
a vector with the names of the nodes in t_0
a vector with the names of the nodes without the appended "_t_0"
maximum number of timeslices of the DBN
vector of probabilities for the velocity sampling
parameter of the truncated geometric distribution
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 'natParticle' object
The score of the current position
ps
position of the particle
cl
velocity of the particle
velocity
that takes the particle to the global best
velocity
that takes the particle to the local best
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