Package org.opt4j.operator.algebra
Class AlgebraDouble
- java.lang.Object
-
- org.opt4j.operator.algebra.AlgebraDouble
-
- All Implemented Interfaces:
Operator<DoubleGenotype>
,Algebra<DoubleGenotype>
public class AlgebraDouble extends Object implements Algebra<DoubleGenotype>
TheAlgebraDouble
forDoubleGenotype
.
-
-
Field Summary
Fields Modifier and Type Field Description protected NormalizeDouble
normalize
-
Constructor Summary
Constructors Constructor Description AlgebraDouble(NormalizeDouble normalize)
Constructs aAlgebraDouble
.
-
-
-
Field Detail
-
normalize
protected final NormalizeDouble normalize
-
-
Constructor Detail
-
AlgebraDouble
@Inject public AlgebraDouble(NormalizeDouble normalize)
Constructs aAlgebraDouble
.- Parameters:
normalize
- the normalize operator for double values
-
-
Method Detail
-
algebra
public DoubleGenotype algebra(Term term, Genotype... genotypes)
Description copied from interface:Algebra
- Specified by:
algebra
in interfaceAlgebra<DoubleGenotype>
- Parameters:
term
- the termgenotypes
- the genotypes- Returns:
- the resulting genotype
-
-