Package io.jenetics.util
Interface Mean<T>
-
- All Known Implementing Classes:
DoubleGene
,IntegerGene
,LongGene
public interface Mean<T>
A mixin interface for genes which can have a mean value. This mixin is required for theMeanAlterer
.- Since:
- 1.0
- Version:
- 1.6
- See Also:
MeanAlterer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
mean(T that)
Return the (usually arithmetic) mean value ofthis
andthat
.
-
-
-
Method Detail
-
mean
T mean(T that)
Return the (usually arithmetic) mean value ofthis
andthat
. ForNumericGene
s the mean is the arithmetic mean.- Parameters:
that
- the second value for calculating the mean.- Returns:
- the mean value of
this
andthat
. - Throws:
NullPointerException
- if the argument isnull
.
-
-