public class VelocityTerm
extends java.lang.Object
implements org.opt4j.operators.algebra.Term
VelocityTerm
is used to determine the new velocity of a
Particle
.Modifier and Type | Field and Description |
---|---|
protected org.opt4j.operators.algebra.Var |
C1 |
protected org.opt4j.operators.algebra.Var |
C2 |
protected org.opt4j.operators.algebra.Var |
r1 |
protected org.opt4j.operators.algebra.Var |
r2 |
protected java.util.Random |
random |
protected org.opt4j.operators.algebra.Term |
term |
protected org.opt4j.operators.algebra.Var |
W |
Constructor and Description |
---|
VelocityTerm(org.opt4j.core.common.random.Rand random)
Constructs a
VelocityTerm . |
Modifier and Type | Method and Description |
---|---|
double |
calculate(double... values) |
void |
randomize()
Randomizes the constants of the term.
|
protected final org.opt4j.operators.algebra.Term term
protected final java.util.Random random
protected final org.opt4j.operators.algebra.Var W
protected final org.opt4j.operators.algebra.Var C1
protected final org.opt4j.operators.algebra.Var C2
protected final org.opt4j.operators.algebra.Var r1
protected final org.opt4j.operators.algebra.Var r2
public VelocityTerm(org.opt4j.core.common.random.Rand random)
VelocityTerm
.random
- the random number generator